日志窗口的滚动条显示,提供一个常用的选项类处理
This commit is contained in:
@@ -40,5 +40,51 @@ namespace CommonLibrary
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 选项类,包含了所有的标识和文本的对应关系
|
||||||
|
/// </summary>
|
||||||
|
public class BasicOptions
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 测试,用于生成数据状态的信息存储
|
||||||
|
/// </summary>
|
||||||
|
public static readonly List<BasicOptions> test = new List<BasicOptions>()
|
||||||
|
{
|
||||||
|
new BasicOptions(0,"测试一"),
|
||||||
|
new BasicOptions(1,"测试二"),
|
||||||
|
new BasicOptions(2,"测试三"),
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 实例化一个对象
|
||||||
|
/// </summary>
|
||||||
|
public BasicOptions()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 根据信息实例化一个选项对象
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="code"></param>
|
||||||
|
/// <param name="des"></param>
|
||||||
|
public BasicOptions(int code, string des)
|
||||||
|
{
|
||||||
|
IntegerCode = code;
|
||||||
|
Description = des;
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 整数的代号
|
||||||
|
/// </summary>
|
||||||
|
public int IntegerCode { get; set; } = 0;
|
||||||
|
/// <summary>
|
||||||
|
/// 代号描述的文本
|
||||||
|
/// </summary>
|
||||||
|
public string Description { get; set; } = string.Empty;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
1
软件系统客户端模版/FormLog.Designer.cs
generated
1
软件系统客户端模版/FormLog.Designer.cs
generated
@@ -45,6 +45,7 @@
|
|||||||
this.textBox1.Location = new System.Drawing.Point(12, 12);
|
this.textBox1.Location = new System.Drawing.Point(12, 12);
|
||||||
this.textBox1.Multiline = true;
|
this.textBox1.Multiline = true;
|
||||||
this.textBox1.Name = "textBox1";
|
this.textBox1.Name = "textBox1";
|
||||||
|
this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
||||||
this.textBox1.Size = new System.Drawing.Size(596, 457);
|
this.textBox1.Size = new System.Drawing.Size(596, 457);
|
||||||
this.textBox1.TabIndex = 0;
|
this.textBox1.TabIndex = 0;
|
||||||
//
|
//
|
||||||
|
|||||||
32
软件系统客户端模版/FormMainWindow.Designer.cs
generated
32
软件系统客户端模版/FormMainWindow.Designer.cs
generated
@@ -146,7 +146,7 @@
|
|||||||
this.关于ToolStripMenuItem});
|
this.关于ToolStripMenuItem});
|
||||||
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
||||||
this.menuStrip1.Name = "menuStrip1";
|
this.menuStrip1.Name = "menuStrip1";
|
||||||
this.menuStrip1.Size = new System.Drawing.Size(921, 33);
|
this.menuStrip1.Size = new System.Drawing.Size(921, 35);
|
||||||
this.menuStrip1.TabIndex = 1;
|
this.menuStrip1.TabIndex = 1;
|
||||||
this.menuStrip1.Text = "menuStrip1";
|
this.menuStrip1.Text = "menuStrip1";
|
||||||
//
|
//
|
||||||
@@ -159,41 +159,41 @@
|
|||||||
this.远程更新ToolStripMenuItem,
|
this.远程更新ToolStripMenuItem,
|
||||||
this.注册账号ToolStripMenuItem});
|
this.注册账号ToolStripMenuItem});
|
||||||
this.管理员ToolStripMenuItem.Name = "管理员ToolStripMenuItem";
|
this.管理员ToolStripMenuItem.Name = "管理员ToolStripMenuItem";
|
||||||
this.管理员ToolStripMenuItem.Size = new System.Drawing.Size(84, 29);
|
this.管理员ToolStripMenuItem.Size = new System.Drawing.Size(84, 31);
|
||||||
this.管理员ToolStripMenuItem.Text = "管理员";
|
this.管理员ToolStripMenuItem.Text = "管理员";
|
||||||
//
|
//
|
||||||
// 更改公告ToolStripMenuItem
|
// 更改公告ToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.更改公告ToolStripMenuItem.Name = "更改公告ToolStripMenuItem";
|
this.更改公告ToolStripMenuItem.Name = "更改公告ToolStripMenuItem";
|
||||||
this.更改公告ToolStripMenuItem.Size = new System.Drawing.Size(164, 30);
|
this.更改公告ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||||
this.更改公告ToolStripMenuItem.Text = "更改公告";
|
this.更改公告ToolStripMenuItem.Text = "更改公告";
|
||||||
this.更改公告ToolStripMenuItem.Click += new System.EventHandler(this.更改公告ToolStripMenuItem_Click);
|
this.更改公告ToolStripMenuItem.Click += new System.EventHandler(this.更改公告ToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
// 日志查看ToolStripMenuItem
|
// 日志查看ToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.日志查看ToolStripMenuItem.Name = "日志查看ToolStripMenuItem";
|
this.日志查看ToolStripMenuItem.Name = "日志查看ToolStripMenuItem";
|
||||||
this.日志查看ToolStripMenuItem.Size = new System.Drawing.Size(164, 30);
|
this.日志查看ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||||
this.日志查看ToolStripMenuItem.Text = "日志查看";
|
this.日志查看ToolStripMenuItem.Text = "日志查看";
|
||||||
this.日志查看ToolStripMenuItem.Click += new System.EventHandler(this.日志查看ToolStripMenuItem_Click);
|
this.日志查看ToolStripMenuItem.Click += new System.EventHandler(this.日志查看ToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
// 账户管理ToolStripMenuItem
|
// 账户管理ToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.账户管理ToolStripMenuItem.Name = "账户管理ToolStripMenuItem";
|
this.账户管理ToolStripMenuItem.Name = "账户管理ToolStripMenuItem";
|
||||||
this.账户管理ToolStripMenuItem.Size = new System.Drawing.Size(164, 30);
|
this.账户管理ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||||
this.账户管理ToolStripMenuItem.Text = "账户管理";
|
this.账户管理ToolStripMenuItem.Text = "账户管理";
|
||||||
this.账户管理ToolStripMenuItem.Click += new System.EventHandler(this.账户管理ToolStripMenuItem_Click);
|
this.账户管理ToolStripMenuItem.Click += new System.EventHandler(this.账户管理ToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
// 远程更新ToolStripMenuItem
|
// 远程更新ToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.远程更新ToolStripMenuItem.Name = "远程更新ToolStripMenuItem";
|
this.远程更新ToolStripMenuItem.Name = "远程更新ToolStripMenuItem";
|
||||||
this.远程更新ToolStripMenuItem.Size = new System.Drawing.Size(164, 30);
|
this.远程更新ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||||
this.远程更新ToolStripMenuItem.Text = "远程更新";
|
this.远程更新ToolStripMenuItem.Text = "远程更新";
|
||||||
this.远程更新ToolStripMenuItem.Click += new System.EventHandler(this.远程更新ToolStripMenuItem_Click);
|
this.远程更新ToolStripMenuItem.Click += new System.EventHandler(this.远程更新ToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
// 注册账号ToolStripMenuItem
|
// 注册账号ToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.注册账号ToolStripMenuItem.Name = "注册账号ToolStripMenuItem";
|
this.注册账号ToolStripMenuItem.Name = "注册账号ToolStripMenuItem";
|
||||||
this.注册账号ToolStripMenuItem.Size = new System.Drawing.Size(164, 30);
|
this.注册账号ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||||
this.注册账号ToolStripMenuItem.Text = "注册账号";
|
this.注册账号ToolStripMenuItem.Text = "注册账号";
|
||||||
this.注册账号ToolStripMenuItem.Click += new System.EventHandler(this.注册账号ToolStripMenuItem_Click);
|
this.注册账号ToolStripMenuItem.Click += new System.EventHandler(this.注册账号ToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
@@ -202,13 +202,13 @@
|
|||||||
this.设置ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
this.设置ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||||
this.修改密码ToolStripMenuItem});
|
this.修改密码ToolStripMenuItem});
|
||||||
this.设置ToolStripMenuItem.Name = "设置ToolStripMenuItem";
|
this.设置ToolStripMenuItem.Name = "设置ToolStripMenuItem";
|
||||||
this.设置ToolStripMenuItem.Size = new System.Drawing.Size(64, 29);
|
this.设置ToolStripMenuItem.Size = new System.Drawing.Size(64, 31);
|
||||||
this.设置ToolStripMenuItem.Text = "设置";
|
this.设置ToolStripMenuItem.Text = "设置";
|
||||||
//
|
//
|
||||||
// 修改密码ToolStripMenuItem
|
// 修改密码ToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.修改密码ToolStripMenuItem.Name = "修改密码ToolStripMenuItem";
|
this.修改密码ToolStripMenuItem.Name = "修改密码ToolStripMenuItem";
|
||||||
this.修改密码ToolStripMenuItem.Size = new System.Drawing.Size(164, 30);
|
this.修改密码ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||||
this.修改密码ToolStripMenuItem.Text = "修改密码";
|
this.修改密码ToolStripMenuItem.Text = "修改密码";
|
||||||
this.修改密码ToolStripMenuItem.Click += new System.EventHandler(this.修改密码ToolStripMenuItem_Click);
|
this.修改密码ToolStripMenuItem.Click += new System.EventHandler(this.修改密码ToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
@@ -219,27 +219,27 @@
|
|||||||
this.更新日志ToolStripMenuItem,
|
this.更新日志ToolStripMenuItem,
|
||||||
this.版本号说明ToolStripMenuItem});
|
this.版本号说明ToolStripMenuItem});
|
||||||
this.关于ToolStripMenuItem.Name = "关于ToolStripMenuItem";
|
this.关于ToolStripMenuItem.Name = "关于ToolStripMenuItem";
|
||||||
this.关于ToolStripMenuItem.Size = new System.Drawing.Size(64, 29);
|
this.关于ToolStripMenuItem.Size = new System.Drawing.Size(64, 31);
|
||||||
this.关于ToolStripMenuItem.Text = "关于";
|
this.关于ToolStripMenuItem.Text = "关于";
|
||||||
//
|
//
|
||||||
// 关于本软件ToolStripMenuItem
|
// 关于本软件ToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.关于本软件ToolStripMenuItem.Name = "关于本软件ToolStripMenuItem";
|
this.关于本软件ToolStripMenuItem.Name = "关于本软件ToolStripMenuItem";
|
||||||
this.关于本软件ToolStripMenuItem.Size = new System.Drawing.Size(184, 30);
|
this.关于本软件ToolStripMenuItem.Size = new System.Drawing.Size(184, 32);
|
||||||
this.关于本软件ToolStripMenuItem.Text = "关于本软件";
|
this.关于本软件ToolStripMenuItem.Text = "关于本软件";
|
||||||
this.关于本软件ToolStripMenuItem.Click += new System.EventHandler(this.关于本软件ToolStripMenuItem_Click);
|
this.关于本软件ToolStripMenuItem.Click += new System.EventHandler(this.关于本软件ToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
// 更新日志ToolStripMenuItem
|
// 更新日志ToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.更新日志ToolStripMenuItem.Name = "更新日志ToolStripMenuItem";
|
this.更新日志ToolStripMenuItem.Name = "更新日志ToolStripMenuItem";
|
||||||
this.更新日志ToolStripMenuItem.Size = new System.Drawing.Size(184, 30);
|
this.更新日志ToolStripMenuItem.Size = new System.Drawing.Size(184, 32);
|
||||||
this.更新日志ToolStripMenuItem.Text = "更新日志";
|
this.更新日志ToolStripMenuItem.Text = "更新日志";
|
||||||
this.更新日志ToolStripMenuItem.Click += new System.EventHandler(this.更新日志ToolStripMenuItem_Click);
|
this.更新日志ToolStripMenuItem.Click += new System.EventHandler(this.更新日志ToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
// 版本号说明ToolStripMenuItem
|
// 版本号说明ToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.版本号说明ToolStripMenuItem.Name = "版本号说明ToolStripMenuItem";
|
this.版本号说明ToolStripMenuItem.Name = "版本号说明ToolStripMenuItem";
|
||||||
this.版本号说明ToolStripMenuItem.Size = new System.Drawing.Size(184, 30);
|
this.版本号说明ToolStripMenuItem.Size = new System.Drawing.Size(184, 32);
|
||||||
this.版本号说明ToolStripMenuItem.Text = "版本号说明";
|
this.版本号说明ToolStripMenuItem.Text = "版本号说明";
|
||||||
this.版本号说明ToolStripMenuItem.Click += new System.EventHandler(this.版本号说明ToolStripMenuItem_Click);
|
this.版本号说明ToolStripMenuItem.Click += new System.EventHandler(this.版本号说明ToolStripMenuItem_Click);
|
||||||
//
|
//
|
||||||
@@ -267,9 +267,9 @@
|
|||||||
this.panel1.Controls.Add(this.label1);
|
this.panel1.Controls.Add(this.label1);
|
||||||
this.panel1.Dock = System.Windows.Forms.DockStyle.Right;
|
this.panel1.Dock = System.Windows.Forms.DockStyle.Right;
|
||||||
this.panel1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
this.panel1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||||
this.panel1.Location = new System.Drawing.Point(697, 33);
|
this.panel1.Location = new System.Drawing.Point(697, 35);
|
||||||
this.panel1.Name = "panel1";
|
this.panel1.Name = "panel1";
|
||||||
this.panel1.Size = new System.Drawing.Size(224, 421);
|
this.panel1.Size = new System.Drawing.Size(224, 419);
|
||||||
this.panel1.TabIndex = 2;
|
this.panel1.TabIndex = 2;
|
||||||
//
|
//
|
||||||
// label_file_count
|
// label_file_count
|
||||||
@@ -342,7 +342,7 @@
|
|||||||
this.listBox1.Location = new System.Drawing.Point(11, 183);
|
this.listBox1.Location = new System.Drawing.Point(11, 183);
|
||||||
this.listBox1.Name = "listBox1";
|
this.listBox1.Name = "listBox1";
|
||||||
this.listBox1.SelectionMode = System.Windows.Forms.SelectionMode.None;
|
this.listBox1.SelectionMode = System.Windows.Forms.SelectionMode.None;
|
||||||
this.listBox1.Size = new System.Drawing.Size(200, 242);
|
this.listBox1.Size = new System.Drawing.Size(200, 225);
|
||||||
this.listBox1.TabIndex = 12;
|
this.listBox1.TabIndex = 12;
|
||||||
//
|
//
|
||||||
// label_address
|
// label_address
|
||||||
|
|||||||
Reference in New Issue
Block a user