服务端添加框架日志查看器

This commit is contained in:
dathlin
2017-09-03 09:03:42 +08:00
parent b1852df1e4
commit da3ff0f22b
2 changed files with 27 additions and 7 deletions

View File

@@ -61,6 +61,7 @@
this.label7 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label();
this.label_GC_Memery = new System.Windows.Forms.Label(); this.label_GC_Memery = new System.Windows.Forms.Label();
this.label_Pm_Memery = new System.Windows.Forms.Label(); this.label_Pm_Memery = new System.Windows.Forms.Label();
this.ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.statusStrip1.SuspendLayout(); this.statusStrip1.SuspendLayout();
this.menuStrip1.SuspendLayout(); this.menuStrip1.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
@@ -124,7 +125,8 @@
this.ToolStripMenuItem, this.ToolStripMenuItem,
this.ToolStripMenuItem, this.ToolStripMenuItem,
this.ToolStripMenuItem, this.ToolStripMenuItem,
this.ToolStripMenuItem}); this.ToolStripMenuItem,
this.ToolStripMenuItem});
this.ToolStripMenuItem.Name = "设置ToolStripMenuItem"; this.ToolStripMenuItem.Name = "设置ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(54, 25); this.ToolStripMenuItem.Size = new System.Drawing.Size(54, 25);
this.ToolStripMenuItem.Text = "设置"; this.ToolStripMenuItem.Text = "设置";
@@ -132,35 +134,35 @@
// 版本控制ToolStripMenuItem // 版本控制ToolStripMenuItem
// //
this.ToolStripMenuItem.Name = "版本控制ToolStripMenuItem"; this.ToolStripMenuItem.Name = "版本控制ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(144, 26); this.ToolStripMenuItem.Size = new System.Drawing.Size(152, 26);
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(144, 26); this.ToolStripMenuItem.Size = new System.Drawing.Size(152, 26);
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(144, 26); this.ToolStripMenuItem.Size = new System.Drawing.Size(152, 26);
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(144, 26); this.ToolStripMenuItem.Size = new System.Drawing.Size(152, 26);
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(144, 26); this.ToolStripMenuItem.Size = new System.Drawing.Size(152, 26);
this.ToolStripMenuItem.Text = "账户管理"; this.ToolStripMenuItem.Text = "账户管理";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click); this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
// //
@@ -324,6 +326,13 @@
this.label_Pm_Memery.Text = "0"; this.label_Pm_Memery.Text = "0";
this.label_Pm_Memery.TextAlign = System.Drawing.ContentAlignment.TopRight; this.label_Pm_Memery.TextAlign = System.Drawing.ContentAlignment.TopRight;
// //
// 日志查看ToolStripMenuItem
//
this.ToolStripMenuItem.Name = "日志查看ToolStripMenuItem";
this.ToolStripMenuItem.Size = new System.Drawing.Size(152, 26);
this.ToolStripMenuItem.Text = "日志查看";
this.ToolStripMenuItem.Click += new System.EventHandler(this.ToolStripMenuItem_Click);
//
// FormServerWindow // FormServerWindow
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
@@ -390,6 +399,7 @@
private System.Windows.Forms.Label label7; private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label_GC_Memery; private System.Windows.Forms.Label label_GC_Memery;
private System.Windows.Forms.Label label_Pm_Memery; private System.Windows.Forms.Label label_Pm_Memery;
private System.Windows.Forms.ToolStripMenuItem ToolStripMenuItem;
} }
} }

View File

@@ -321,6 +321,14 @@ namespace 软件系统服务端模版
} }
} }
private void ToolStripMenuItem_Click(object sender, EventArgs e)
{
using (FormLogNetView fln = new FormLogNetView())
{
fln.ShowDialog();
}
}
#endregion #endregion
#region #region
@@ -1356,8 +1364,10 @@ namespace 软件系统服务端模版
SoftBasic.ShowExceptionMessage(ex); SoftBasic.ShowExceptionMessage(ex);
} }
} }
#endregion #endregion
} }
} }