服务器新增性能计数缓存,客户端允许查看图形
This commit is contained in:
@@ -54,6 +54,7 @@ namespace CommonLibrary
|
||||
public static int 意见反馈 { get; } = 10011;
|
||||
public static int 群发消息 { get; } = 10012;
|
||||
public static int 异常消息 { get; } = 10013;
|
||||
public static int 性能计数 { get; } = 10014;
|
||||
|
||||
|
||||
|
||||
|
||||
280
软件系统客户端模版/FormMainWindow.Designer.cs
generated
280
软件系统客户端模版/FormMainWindow.Designer.cs
generated
@@ -37,21 +37,6 @@
|
||||
this.toolStripStatusLabel4 = new System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.toolStripStatusLabel_time = new System.Windows.Forms.ToolStripStatusLabel();
|
||||
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
|
||||
this.管理员ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.更改公告ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.日志查看ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.账户管理ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.远程更新ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.注册账号ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.消息发送ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.设置ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.修改密码ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.留言板ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.关于ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.关于本软件ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.更新日志ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.版本号说明ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.意见反馈ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.panel_right = new System.Windows.Forms.Panel();
|
||||
this.label_file_count = new System.Windows.Forms.Label();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
@@ -76,6 +61,22 @@
|
||||
this.panel_left = new System.Windows.Forms.Panel();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.panel_main = new System.Windows.Forms.Panel();
|
||||
this.管理员ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.更改公告ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.日志查看ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.账户管理ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.远程更新ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.注册账号ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.消息发送ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.设置ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.修改密码ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.留言板ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.关于ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.关于本软件ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.更新日志ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.版本号说明ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.意见反馈ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.开发中心ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.statusStrip1.SuspendLayout();
|
||||
this.menuStrip1.SuspendLayout();
|
||||
this.panel_right.SuspendLayout();
|
||||
@@ -157,126 +158,6 @@
|
||||
this.menuStrip1.TabIndex = 1;
|
||||
this.menuStrip1.Text = "menuStrip1";
|
||||
//
|
||||
// 管理员ToolStripMenuItem
|
||||
//
|
||||
this.管理员ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.更改公告ToolStripMenuItem,
|
||||
this.日志查看ToolStripMenuItem,
|
||||
this.账户管理ToolStripMenuItem,
|
||||
this.远程更新ToolStripMenuItem,
|
||||
this.注册账号ToolStripMenuItem,
|
||||
this.消息发送ToolStripMenuItem});
|
||||
this.管理员ToolStripMenuItem.Image = global::软件系统客户端模版.Properties.Resources.Team_32xLG;
|
||||
this.管理员ToolStripMenuItem.Name = "管理员ToolStripMenuItem";
|
||||
this.管理员ToolStripMenuItem.Size = new System.Drawing.Size(100, 31);
|
||||
this.管理员ToolStripMenuItem.Text = "管理员";
|
||||
//
|
||||
// 更改公告ToolStripMenuItem
|
||||
//
|
||||
this.更改公告ToolStripMenuItem.Name = "更改公告ToolStripMenuItem";
|
||||
this.更改公告ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.更改公告ToolStripMenuItem.Text = "更改公告";
|
||||
this.更改公告ToolStripMenuItem.Click += new System.EventHandler(this.更改公告ToolStripMenuItem_Click);
|
||||
//
|
||||
// 日志查看ToolStripMenuItem
|
||||
//
|
||||
this.日志查看ToolStripMenuItem.Name = "日志查看ToolStripMenuItem";
|
||||
this.日志查看ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.日志查看ToolStripMenuItem.Text = "日志查看";
|
||||
this.日志查看ToolStripMenuItem.Click += new System.EventHandler(this.日志查看ToolStripMenuItem_Click);
|
||||
//
|
||||
// 账户管理ToolStripMenuItem
|
||||
//
|
||||
this.账户管理ToolStripMenuItem.Name = "账户管理ToolStripMenuItem";
|
||||
this.账户管理ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.账户管理ToolStripMenuItem.Text = "账户管理";
|
||||
this.账户管理ToolStripMenuItem.Click += new System.EventHandler(this.账户管理ToolStripMenuItem_Click);
|
||||
//
|
||||
// 远程更新ToolStripMenuItem
|
||||
//
|
||||
this.远程更新ToolStripMenuItem.Name = "远程更新ToolStripMenuItem";
|
||||
this.远程更新ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.远程更新ToolStripMenuItem.Text = "远程更新";
|
||||
this.远程更新ToolStripMenuItem.Click += new System.EventHandler(this.远程更新ToolStripMenuItem_Click);
|
||||
//
|
||||
// 注册账号ToolStripMenuItem
|
||||
//
|
||||
this.注册账号ToolStripMenuItem.Name = "注册账号ToolStripMenuItem";
|
||||
this.注册账号ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.注册账号ToolStripMenuItem.Text = "注册账号";
|
||||
this.注册账号ToolStripMenuItem.Click += new System.EventHandler(this.注册账号ToolStripMenuItem_Click);
|
||||
//
|
||||
// 消息发送ToolStripMenuItem
|
||||
//
|
||||
this.消息发送ToolStripMenuItem.Name = "消息发送ToolStripMenuItem";
|
||||
this.消息发送ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.消息发送ToolStripMenuItem.Text = "消息发送";
|
||||
this.消息发送ToolStripMenuItem.Click += new System.EventHandler(this.消息发送ToolStripMenuItem_Click);
|
||||
//
|
||||
// 设置ToolStripMenuItem
|
||||
//
|
||||
this.设置ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.修改密码ToolStripMenuItem,
|
||||
this.留言板ToolStripMenuItem});
|
||||
this.设置ToolStripMenuItem.Image = global::软件系统客户端模版.Properties.Resources.PickAxe_32xLG;
|
||||
this.设置ToolStripMenuItem.Name = "设置ToolStripMenuItem";
|
||||
this.设置ToolStripMenuItem.Size = new System.Drawing.Size(80, 31);
|
||||
this.设置ToolStripMenuItem.Text = "设置";
|
||||
//
|
||||
// 修改密码ToolStripMenuItem
|
||||
//
|
||||
this.修改密码ToolStripMenuItem.Name = "修改密码ToolStripMenuItem";
|
||||
this.修改密码ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.修改密码ToolStripMenuItem.Text = "修改密码";
|
||||
this.修改密码ToolStripMenuItem.Click += new System.EventHandler(this.修改密码ToolStripMenuItem_Click);
|
||||
//
|
||||
// 留言板ToolStripMenuItem
|
||||
//
|
||||
this.留言板ToolStripMenuItem.Name = "留言板ToolStripMenuItem";
|
||||
this.留言板ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.留言板ToolStripMenuItem.Text = "留言板";
|
||||
this.留言板ToolStripMenuItem.Click += new System.EventHandler(this.留言板ToolStripMenuItem_Click);
|
||||
//
|
||||
// 关于ToolStripMenuItem
|
||||
//
|
||||
this.关于ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.关于本软件ToolStripMenuItem,
|
||||
this.更新日志ToolStripMenuItem,
|
||||
this.版本号说明ToolStripMenuItem,
|
||||
this.意见反馈ToolStripMenuItem});
|
||||
this.关于ToolStripMenuItem.Image = global::软件系统客户端模版.Properties.Resources.ASCube_32xLG;
|
||||
this.关于ToolStripMenuItem.Name = "关于ToolStripMenuItem";
|
||||
this.关于ToolStripMenuItem.Size = new System.Drawing.Size(80, 31);
|
||||
this.关于ToolStripMenuItem.Text = "关于";
|
||||
//
|
||||
// 关于本软件ToolStripMenuItem
|
||||
//
|
||||
this.关于本软件ToolStripMenuItem.Name = "关于本软件ToolStripMenuItem";
|
||||
this.关于本软件ToolStripMenuItem.Size = new System.Drawing.Size(184, 32);
|
||||
this.关于本软件ToolStripMenuItem.Text = "关于本软件";
|
||||
this.关于本软件ToolStripMenuItem.Click += new System.EventHandler(this.关于本软件ToolStripMenuItem_Click);
|
||||
//
|
||||
// 更新日志ToolStripMenuItem
|
||||
//
|
||||
this.更新日志ToolStripMenuItem.Name = "更新日志ToolStripMenuItem";
|
||||
this.更新日志ToolStripMenuItem.Size = new System.Drawing.Size(184, 32);
|
||||
this.更新日志ToolStripMenuItem.Text = "更新日志";
|
||||
this.更新日志ToolStripMenuItem.Click += new System.EventHandler(this.更新日志ToolStripMenuItem_Click);
|
||||
//
|
||||
// 版本号说明ToolStripMenuItem
|
||||
//
|
||||
this.版本号说明ToolStripMenuItem.Name = "版本号说明ToolStripMenuItem";
|
||||
this.版本号说明ToolStripMenuItem.Size = new System.Drawing.Size(184, 32);
|
||||
this.版本号说明ToolStripMenuItem.Text = "版本号说明";
|
||||
this.版本号说明ToolStripMenuItem.Click += new System.EventHandler(this.版本号说明ToolStripMenuItem_Click);
|
||||
//
|
||||
// 意见反馈ToolStripMenuItem
|
||||
//
|
||||
this.意见反馈ToolStripMenuItem.Name = "意见反馈ToolStripMenuItem";
|
||||
this.意见反馈ToolStripMenuItem.Size = new System.Drawing.Size(184, 32);
|
||||
this.意见反馈ToolStripMenuItem.Text = "意见反馈";
|
||||
this.意见反馈ToolStripMenuItem.Click += new System.EventHandler(this.意见反馈ToolStripMenuItem_Click);
|
||||
//
|
||||
// panel_right
|
||||
//
|
||||
this.panel_right.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
@@ -526,6 +407,134 @@
|
||||
this.panel_main.Size = new System.Drawing.Size(557, 419);
|
||||
this.panel_main.TabIndex = 5;
|
||||
//
|
||||
// 管理员ToolStripMenuItem
|
||||
//
|
||||
this.管理员ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.更改公告ToolStripMenuItem,
|
||||
this.日志查看ToolStripMenuItem,
|
||||
this.账户管理ToolStripMenuItem,
|
||||
this.远程更新ToolStripMenuItem,
|
||||
this.注册账号ToolStripMenuItem,
|
||||
this.消息发送ToolStripMenuItem,
|
||||
this.开发中心ToolStripMenuItem});
|
||||
this.管理员ToolStripMenuItem.Image = global::软件系统客户端模版.Properties.Resources.Team_32xLG;
|
||||
this.管理员ToolStripMenuItem.Name = "管理员ToolStripMenuItem";
|
||||
this.管理员ToolStripMenuItem.Size = new System.Drawing.Size(100, 31);
|
||||
this.管理员ToolStripMenuItem.Text = "管理员";
|
||||
//
|
||||
// 更改公告ToolStripMenuItem
|
||||
//
|
||||
this.更改公告ToolStripMenuItem.Name = "更改公告ToolStripMenuItem";
|
||||
this.更改公告ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.更改公告ToolStripMenuItem.Text = "更改公告";
|
||||
this.更改公告ToolStripMenuItem.Click += new System.EventHandler(this.更改公告ToolStripMenuItem_Click);
|
||||
//
|
||||
// 日志查看ToolStripMenuItem
|
||||
//
|
||||
this.日志查看ToolStripMenuItem.Name = "日志查看ToolStripMenuItem";
|
||||
this.日志查看ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.日志查看ToolStripMenuItem.Text = "日志查看";
|
||||
this.日志查看ToolStripMenuItem.Click += new System.EventHandler(this.日志查看ToolStripMenuItem_Click);
|
||||
//
|
||||
// 账户管理ToolStripMenuItem
|
||||
//
|
||||
this.账户管理ToolStripMenuItem.Name = "账户管理ToolStripMenuItem";
|
||||
this.账户管理ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.账户管理ToolStripMenuItem.Text = "账户管理";
|
||||
this.账户管理ToolStripMenuItem.Click += new System.EventHandler(this.账户管理ToolStripMenuItem_Click);
|
||||
//
|
||||
// 远程更新ToolStripMenuItem
|
||||
//
|
||||
this.远程更新ToolStripMenuItem.Name = "远程更新ToolStripMenuItem";
|
||||
this.远程更新ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.远程更新ToolStripMenuItem.Text = "远程更新";
|
||||
this.远程更新ToolStripMenuItem.Click += new System.EventHandler(this.远程更新ToolStripMenuItem_Click);
|
||||
//
|
||||
// 注册账号ToolStripMenuItem
|
||||
//
|
||||
this.注册账号ToolStripMenuItem.Name = "注册账号ToolStripMenuItem";
|
||||
this.注册账号ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.注册账号ToolStripMenuItem.Text = "注册账号";
|
||||
this.注册账号ToolStripMenuItem.Click += new System.EventHandler(this.注册账号ToolStripMenuItem_Click);
|
||||
//
|
||||
// 消息发送ToolStripMenuItem
|
||||
//
|
||||
this.消息发送ToolStripMenuItem.Name = "消息发送ToolStripMenuItem";
|
||||
this.消息发送ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.消息发送ToolStripMenuItem.Text = "消息发送";
|
||||
this.消息发送ToolStripMenuItem.Click += new System.EventHandler(this.消息发送ToolStripMenuItem_Click);
|
||||
//
|
||||
// 设置ToolStripMenuItem
|
||||
//
|
||||
this.设置ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.修改密码ToolStripMenuItem,
|
||||
this.留言板ToolStripMenuItem});
|
||||
this.设置ToolStripMenuItem.Image = global::软件系统客户端模版.Properties.Resources.PickAxe_32xLG;
|
||||
this.设置ToolStripMenuItem.Name = "设置ToolStripMenuItem";
|
||||
this.设置ToolStripMenuItem.Size = new System.Drawing.Size(80, 31);
|
||||
this.设置ToolStripMenuItem.Text = "设置";
|
||||
//
|
||||
// 修改密码ToolStripMenuItem
|
||||
//
|
||||
this.修改密码ToolStripMenuItem.Name = "修改密码ToolStripMenuItem";
|
||||
this.修改密码ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.修改密码ToolStripMenuItem.Text = "修改密码";
|
||||
this.修改密码ToolStripMenuItem.Click += new System.EventHandler(this.修改密码ToolStripMenuItem_Click);
|
||||
//
|
||||
// 留言板ToolStripMenuItem
|
||||
//
|
||||
this.留言板ToolStripMenuItem.Name = "留言板ToolStripMenuItem";
|
||||
this.留言板ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.留言板ToolStripMenuItem.Text = "留言板";
|
||||
this.留言板ToolStripMenuItem.Click += new System.EventHandler(this.留言板ToolStripMenuItem_Click);
|
||||
//
|
||||
// 关于ToolStripMenuItem
|
||||
//
|
||||
this.关于ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.关于本软件ToolStripMenuItem,
|
||||
this.更新日志ToolStripMenuItem,
|
||||
this.版本号说明ToolStripMenuItem,
|
||||
this.意见反馈ToolStripMenuItem});
|
||||
this.关于ToolStripMenuItem.Image = global::软件系统客户端模版.Properties.Resources.ASCube_32xLG;
|
||||
this.关于ToolStripMenuItem.Name = "关于ToolStripMenuItem";
|
||||
this.关于ToolStripMenuItem.Size = new System.Drawing.Size(80, 31);
|
||||
this.关于ToolStripMenuItem.Text = "关于";
|
||||
//
|
||||
// 关于本软件ToolStripMenuItem
|
||||
//
|
||||
this.关于本软件ToolStripMenuItem.Name = "关于本软件ToolStripMenuItem";
|
||||
this.关于本软件ToolStripMenuItem.Size = new System.Drawing.Size(184, 32);
|
||||
this.关于本软件ToolStripMenuItem.Text = "关于本软件";
|
||||
this.关于本软件ToolStripMenuItem.Click += new System.EventHandler(this.关于本软件ToolStripMenuItem_Click);
|
||||
//
|
||||
// 更新日志ToolStripMenuItem
|
||||
//
|
||||
this.更新日志ToolStripMenuItem.Name = "更新日志ToolStripMenuItem";
|
||||
this.更新日志ToolStripMenuItem.Size = new System.Drawing.Size(184, 32);
|
||||
this.更新日志ToolStripMenuItem.Text = "更新日志";
|
||||
this.更新日志ToolStripMenuItem.Click += new System.EventHandler(this.更新日志ToolStripMenuItem_Click);
|
||||
//
|
||||
// 版本号说明ToolStripMenuItem
|
||||
//
|
||||
this.版本号说明ToolStripMenuItem.Name = "版本号说明ToolStripMenuItem";
|
||||
this.版本号说明ToolStripMenuItem.Size = new System.Drawing.Size(184, 32);
|
||||
this.版本号说明ToolStripMenuItem.Text = "版本号说明";
|
||||
this.版本号说明ToolStripMenuItem.Click += new System.EventHandler(this.版本号说明ToolStripMenuItem_Click);
|
||||
//
|
||||
// 意见反馈ToolStripMenuItem
|
||||
//
|
||||
this.意见反馈ToolStripMenuItem.Name = "意见反馈ToolStripMenuItem";
|
||||
this.意见反馈ToolStripMenuItem.Size = new System.Drawing.Size(184, 32);
|
||||
this.意见反馈ToolStripMenuItem.Text = "意见反馈";
|
||||
this.意见反馈ToolStripMenuItem.Click += new System.EventHandler(this.意见反馈ToolStripMenuItem_Click);
|
||||
//
|
||||
// 开发中心ToolStripMenuItem
|
||||
//
|
||||
this.开发中心ToolStripMenuItem.Name = "开发中心ToolStripMenuItem";
|
||||
this.开发中心ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.开发中心ToolStripMenuItem.Text = "开发中心";
|
||||
this.开发中心ToolStripMenuItem.Click += new System.EventHandler(this.开发中心ToolStripMenuItem_Click);
|
||||
//
|
||||
// FormMainWindow
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
@@ -607,6 +616,7 @@
|
||||
private System.Windows.Forms.ToolStripMenuItem 留言板ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 意见反馈ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 消息发送ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 开发中心ToolStripMenuItem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -112,6 +112,7 @@ namespace 软件系统客户端模版
|
||||
远程更新ToolStripMenuItem.Enabled = false;
|
||||
注册账号ToolStripMenuItem.Enabled = false;
|
||||
消息发送ToolStripMenuItem.Enabled = false;
|
||||
开发中心ToolStripMenuItem.Enabled = false;
|
||||
}
|
||||
//启动定时器
|
||||
TimeTickInitilization();
|
||||
@@ -267,6 +268,14 @@ namespace 软件系统客户端模版
|
||||
}
|
||||
}
|
||||
|
||||
private void 开发中心ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
using (FormSuper fs = new FormSuper())
|
||||
{
|
||||
fs.ShowDialog();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 异步网络块
|
||||
@@ -581,6 +590,7 @@ namespace 软件系统客户端模版
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
80
软件系统客户端模版/FormSuper.Designer.cs
generated
Normal file
80
软件系统客户端模版/FormSuper.Designer.cs
generated
Normal file
@@ -0,0 +1,80 @@
|
||||
namespace 软件系统客户端模版
|
||||
{
|
||||
partial class FormSuper
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(298, 18);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(80, 17);
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "对象内存图形";
|
||||
//
|
||||
// pictureBox1
|
||||
//
|
||||
this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.pictureBox1.Location = new System.Drawing.Point(301, 38);
|
||||
this.pictureBox1.Name = "pictureBox1";
|
||||
this.pictureBox1.Size = new System.Drawing.Size(503, 380);
|
||||
this.pictureBox1.TabIndex = 1;
|
||||
this.pictureBox1.TabStop = false;
|
||||
//
|
||||
// FormSuper
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(823, 430);
|
||||
this.Controls.Add(this.pictureBox1);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.Name = "FormSuper";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "超级管理员";
|
||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FormSuper_FormClosing);
|
||||
this.Load += new System.EventHandler(this.FormSuper_Load);
|
||||
this.Shown += new System.EventHandler(this.FormSuper_Shown);
|
||||
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.PictureBox pictureBox1;
|
||||
}
|
||||
}
|
||||
65
软件系统客户端模版/FormSuper.cs
Normal file
65
软件系统客户端模版/FormSuper.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace 软件系统客户端模版
|
||||
{
|
||||
public partial class FormSuper : Form
|
||||
{
|
||||
public FormSuper()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void FormSuper_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void FormSuper_Shown(object sender, EventArgs e)
|
||||
{
|
||||
IsWindowShow = true;
|
||||
timer = new Timer();
|
||||
timer.Interval = 1000;
|
||||
timer.Tick += Timer_Tick;
|
||||
timer.Start();
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void FormSuper_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
IsWindowShow = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
private bool IsWindowShow { get; set; }
|
||||
|
||||
private void Timer_Tick(object sender, EventArgs e)
|
||||
{
|
||||
HslCommunication.OperateResultBytes result = UserClient.Net_simplify_client.ReadFromServer(CommonLibrary.CommonHeadCode.SimplifyHeadCode.性能计数, new byte[0]);
|
||||
//解析
|
||||
if (result.IsSuccess)
|
||||
{
|
||||
int[] data = new int[result.Content.Length / 4];
|
||||
for (int i = 0; i < data.Length; i++)
|
||||
{
|
||||
data[i] = BitConverter.ToInt32(result.Content, i * 4);
|
||||
}
|
||||
if (IsWindowShow)
|
||||
{
|
||||
pictureBox1.Image?.Dispose();
|
||||
pictureBox1.Image = HslCommunication.BasicFramework.SoftPainting.GetGraphicFromArray(data, pictureBox1.Width - 2, pictureBox1.Height - 2, 7, Color.Blue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private Timer timer = null;
|
||||
}
|
||||
}
|
||||
120
软件系统客户端模版/FormSuper.resx
Normal file
120
软件系统客户端模版/FormSuper.resx
Normal file
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
@@ -83,6 +83,12 @@
|
||||
<Compile Include="FormRegisterAccount.Designer.cs">
|
||||
<DependentUpon>FormRegisterAccount.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FormSuper.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FormSuper.Designer.cs">
|
||||
<DependentUpon>FormSuper.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FormUpdateRemote.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
@@ -119,6 +125,9 @@
|
||||
<EmbeddedResource Include="FormRegisterAccount.resx">
|
||||
<DependentUpon>FormRegisterAccount.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FormSuper.resx">
|
||||
<DependentUpon>FormSuper.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FormUpdateRemote.resx">
|
||||
<DependentUpon>FormUpdateRemote.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
||||
@@ -396,9 +396,16 @@ namespace 软件系统服务端模版
|
||||
/// <param name="customer">字节数据,根据实际情况选择是否使用</param>
|
||||
/// <param name="data">来自客户端的字节数据</param>
|
||||
private void Net_simplify_server_ReceivedBytesEvent(AsyncStateOne state, int customer, byte[] data)
|
||||
{
|
||||
if(customer==CommonHeadCode.SimplifyHeadCode.性能计数)
|
||||
{
|
||||
net_simplify_server.SendMessage(state, customer, GetPerfomace());
|
||||
}
|
||||
else
|
||||
{
|
||||
net_simplify_server.SendMessage(state, customer, data);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -824,6 +831,9 @@ namespace 软件系统服务端模版
|
||||
private void MethodOccurEverySecond()
|
||||
{
|
||||
long current1 = GC.GetTotalMemory(false);
|
||||
//增加到性能计数
|
||||
AddPerfomace(current1);
|
||||
|
||||
long current2 = 0;
|
||||
toolStripStatusLabel_time.Text = DateTime.Now.ToString();
|
||||
label_GC_Memery.Text = current1.ToString();
|
||||
@@ -878,6 +888,23 @@ namespace 软件系统服务端模版
|
||||
}
|
||||
|
||||
|
||||
#region 服务器内存性能缓存小模块
|
||||
|
||||
private SoftCacheArrayInt SoftCachePerfomance = new SoftCacheArrayInt(400, 0);
|
||||
|
||||
private void AddPerfomace(long value)
|
||||
{
|
||||
SoftCachePerfomance.AddValue((int)value);//虽然存在不安全隐患,但是几乎不可能大于20亿
|
||||
}
|
||||
|
||||
private byte[] GetPerfomace()
|
||||
{
|
||||
return SoftCachePerfomance.GetAllData();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region 共享文件下载块
|
||||
|
||||
Reference in New Issue
Block a user