📄 assessprogress.cs
字号:
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;
namespace bs
{
/// <summary>
/// AssessProgress 的摘要说明。
/// </summary>
public class AssessProgress : System.Windows.Forms.UserControl
{
private System.Windows.Forms.Panel panel1;
public double m_panel1;
public double m_panel2;
private System.Windows.Forms.Splitter splitter1;
private System.Windows.Forms.Panel panel2;
public double width1
{
get
{
m_panel1=this.panel1.Width;
return m_panel1;
}
set
{
m_panel1=value;
}
}
public double width2
{
get
{
m_panel2=this.panel2.Width;
return m_panel2;
}
set
{
m_panel2=value;
}
}
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public AssessProgress()
{
// 该调用是 Windows.Forms 窗体设计器所必需的。
InitializeComponent();
// TODO: 在 InitializeComponent 调用后添加任何初始化
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Component Designer generated code
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器
/// 修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.panel1 = new System.Windows.Forms.Panel();
this.splitter1 = new System.Windows.Forms.Splitter();
this.panel2 = new System.Windows.Forms.Panel();
this.SuspendLayout();
//
// panel1
//
this.panel1.AllowDrop = true;
this.panel1.BackColor = System.Drawing.Color.Red;
this.panel1.Dock = System.Windows.Forms.DockStyle.Left;
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(100, 16);
this.panel1.TabIndex = 0;
//
// splitter1
//
this.splitter1.Cursor = System.Windows.Forms.Cursors.SizeWE;
this.splitter1.Location = new System.Drawing.Point(100, 0);
this.splitter1.MinExtra = 0;
this.splitter1.MinSize = 0;
this.splitter1.Name = "splitter1";
this.splitter1.Size = new System.Drawing.Size(1, 16);
this.splitter1.TabIndex = 1;
this.splitter1.TabStop = false;
//
// panel2
//
this.panel2.AllowDrop = true;
this.panel2.BackColor = System.Drawing.Color.Yellow;
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(101, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(99, 16);
this.panel2.TabIndex = 2;
//
// AssessProgress
//
this.Controls.AddRange(new System.Windows.Forms.Control[] {
this.panel2,
this.splitter1,
this.panel1});
this.Name = "AssessProgress";
this.Size = new System.Drawing.Size(200, 16);
this.ResumeLayout(false);
}
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -