网络组件更新,日志组件重新设计,查看日志更方便,网络类名称重新组织
This commit is contained in:
@@ -55,11 +55,11 @@
|
||||
<Compile Include="FormDownloading.Designer.cs">
|
||||
<DependentUpon>FormDownloading.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FormLog.cs">
|
||||
<Compile Include="FormLogView.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FormLog.Designer.cs">
|
||||
<DependentUpon>FormLog.cs</DependentUpon>
|
||||
<Compile Include="FormLogView.Designer.cs">
|
||||
<DependentUpon>FormLogView.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FormRegisterAccount.cs">
|
||||
<SubType>Form</SubType>
|
||||
@@ -81,8 +81,8 @@
|
||||
<EmbeddedResource Include="FormDownloading.resx">
|
||||
<DependentUpon>FormDownloading.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FormLog.resx">
|
||||
<DependentUpon>FormLog.cs</DependentUpon>
|
||||
<EmbeddedResource Include="FormLogView.resx">
|
||||
<DependentUpon>FormLogView.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FormRegisterAccount.resx">
|
||||
<DependentUpon>FormRegisterAccount.cs</DependentUpon>
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
using HslCommunication.Controls;
|
||||
|
||||
namespace ClientsLibrary
|
||||
namespace ClientsLibrary
|
||||
{
|
||||
partial class FormLog
|
||||
partial class FormLogView
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
@@ -30,358 +28,38 @@ namespace ClientsLibrary
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||
this.userButton_login = new HslCommunication.Controls.UserButton();
|
||||
this.userButton1 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton2 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton3 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton4 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton5 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton6 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton7 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton_log1 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton_log2 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton_log3 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton_log4 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton_log = new HslCommunication.Controls.UserButton();
|
||||
this.userButton8 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton9 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton10 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton11 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton12 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton13 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton14 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton15 = new HslCommunication.Controls.UserButton();
|
||||
this.logNetAnalysisControl1 = new HslCommunication.LogNet.LogNetAnalysisControl();
|
||||
this.userButton16 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton17 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton15 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton14 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton12 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton13 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton10 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton11 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton8 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton9 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton6 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton7 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton5 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton4 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton3 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton2 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton1 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton_login = new HslCommunication.Controls.UserButton();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// textBox1
|
||||
// logNetAnalysisControl1
|
||||
//
|
||||
this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
this.logNetAnalysisControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.textBox1.Location = new System.Drawing.Point(12, 12);
|
||||
this.textBox1.Multiline = true;
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
||||
this.textBox1.Size = new System.Drawing.Size(608, 498);
|
||||
this.textBox1.TabIndex = 0;
|
||||
//
|
||||
// userButton_login
|
||||
//
|
||||
this.userButton_login.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton_login.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton_login.CustomerInformation = "";
|
||||
this.userButton_login.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton_login.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton_login.Location = new System.Drawing.Point(626, 13);
|
||||
this.userButton_login.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton_login.Name = "userButton_login";
|
||||
this.userButton_login.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton_login.TabIndex = 6;
|
||||
this.userButton_login.UIText = "网络日志查看";
|
||||
this.userButton_login.Click += new System.EventHandler(this.userButton_login_Click);
|
||||
//
|
||||
// userButton1
|
||||
//
|
||||
this.userButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton1.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton1.CustomerInformation = "";
|
||||
this.userButton1.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton1.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton1.Location = new System.Drawing.Point(736, 13);
|
||||
this.userButton1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton1.Name = "userButton1";
|
||||
this.userButton1.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton1.TabIndex = 7;
|
||||
this.userButton1.UIText = "网络日志清空";
|
||||
this.userButton1.Click += new System.EventHandler(this.userButton1_Click);
|
||||
//
|
||||
// userButton2
|
||||
//
|
||||
this.userButton2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton2.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton2.CustomerInformation = "";
|
||||
this.userButton2.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton2.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton2.Location = new System.Drawing.Point(626, 62);
|
||||
this.userButton2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton2.Name = "userButton2";
|
||||
this.userButton2.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton2.TabIndex = 8;
|
||||
this.userButton2.UIText = "同步日志查看";
|
||||
this.userButton2.Click += new System.EventHandler(this.userButton2_Click);
|
||||
//
|
||||
// userButton3
|
||||
//
|
||||
this.userButton3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton3.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton3.CustomerInformation = "";
|
||||
this.userButton3.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton3.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton3.Location = new System.Drawing.Point(736, 62);
|
||||
this.userButton3.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton3.Name = "userButton3";
|
||||
this.userButton3.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton3.TabIndex = 9;
|
||||
this.userButton3.UIText = "同步日志清空";
|
||||
this.userButton3.Click += new System.EventHandler(this.userButton3_Click);
|
||||
//
|
||||
// userButton4
|
||||
//
|
||||
this.userButton4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton4.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton4.CustomerInformation = "";
|
||||
this.userButton4.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton4.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton4.Location = new System.Drawing.Point(626, 111);
|
||||
this.userButton4.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton4.Name = "userButton4";
|
||||
this.userButton4.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton4.TabIndex = 10;
|
||||
this.userButton4.UIText = "更新日志查看";
|
||||
this.userButton4.Click += new System.EventHandler(this.userButton4_Click);
|
||||
//
|
||||
// userButton5
|
||||
//
|
||||
this.userButton5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton5.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton5.CustomerInformation = "";
|
||||
this.userButton5.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton5.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton5.Location = new System.Drawing.Point(736, 111);
|
||||
this.userButton5.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton5.Name = "userButton5";
|
||||
this.userButton5.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton5.TabIndex = 11;
|
||||
this.userButton5.UIText = "更新日志清空";
|
||||
this.userButton5.Click += new System.EventHandler(this.userButton5_Click);
|
||||
//
|
||||
// userButton6
|
||||
//
|
||||
this.userButton6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton6.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton6.CustomerInformation = "";
|
||||
this.userButton6.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton6.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton6.Location = new System.Drawing.Point(736, 517);
|
||||
this.userButton6.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton6.Name = "userButton6";
|
||||
this.userButton6.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton6.TabIndex = 13;
|
||||
this.userButton6.UIText = "运行日志清空";
|
||||
this.userButton6.Click += new System.EventHandler(this.userButton6_Click);
|
||||
//
|
||||
// userButton7
|
||||
//
|
||||
this.userButton7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton7.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton7.CustomerInformation = "";
|
||||
this.userButton7.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton7.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton7.Location = new System.Drawing.Point(626, 517);
|
||||
this.userButton7.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton7.Name = "userButton7";
|
||||
this.userButton7.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton7.TabIndex = 12;
|
||||
this.userButton7.UIText = "运行日志查看";
|
||||
this.userButton7.Click += new System.EventHandler(this.userButton7_Click);
|
||||
//
|
||||
// userButton_log1
|
||||
//
|
||||
this.userButton_log1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.userButton_log1.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton_log1.CustomerInformation = "";
|
||||
this.userButton_log1.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton_log1.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton_log1.Location = new System.Drawing.Point(12, 517);
|
||||
this.userButton_log1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton_log1.Name = "userButton_log1";
|
||||
this.userButton_log1.Size = new System.Drawing.Size(63, 26);
|
||||
this.userButton_log1.TabIndex = 14;
|
||||
this.userButton_log1.UIText = "普通";
|
||||
this.userButton_log1.Click += new System.EventHandler(this.userButton_log1_Click);
|
||||
//
|
||||
// userButton_log2
|
||||
//
|
||||
this.userButton_log2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.userButton_log2.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton_log2.CustomerInformation = "";
|
||||
this.userButton_log2.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton_log2.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton_log2.Location = new System.Drawing.Point(81, 517);
|
||||
this.userButton_log2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton_log2.Name = "userButton_log2";
|
||||
this.userButton_log2.Size = new System.Drawing.Size(63, 26);
|
||||
this.userButton_log2.TabIndex = 15;
|
||||
this.userButton_log2.UIText = "信息";
|
||||
this.userButton_log2.Click += new System.EventHandler(this.userButton_log2_Click);
|
||||
//
|
||||
// userButton_log3
|
||||
//
|
||||
this.userButton_log3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.userButton_log3.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton_log3.CustomerInformation = "";
|
||||
this.userButton_log3.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton_log3.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton_log3.Location = new System.Drawing.Point(150, 517);
|
||||
this.userButton_log3.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton_log3.Name = "userButton_log3";
|
||||
this.userButton_log3.Size = new System.Drawing.Size(63, 26);
|
||||
this.userButton_log3.TabIndex = 16;
|
||||
this.userButton_log3.UIText = "警告";
|
||||
this.userButton_log3.Click += new System.EventHandler(this.userButton_log3_Click);
|
||||
//
|
||||
// userButton_log4
|
||||
//
|
||||
this.userButton_log4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.userButton_log4.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton_log4.CustomerInformation = "";
|
||||
this.userButton_log4.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton_log4.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton_log4.Location = new System.Drawing.Point(219, 517);
|
||||
this.userButton_log4.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton_log4.Name = "userButton_log4";
|
||||
this.userButton_log4.Size = new System.Drawing.Size(63, 26);
|
||||
this.userButton_log4.TabIndex = 17;
|
||||
this.userButton_log4.UIText = "错误";
|
||||
this.userButton_log4.Click += new System.EventHandler(this.userButton_log4_Click);
|
||||
//
|
||||
// userButton_log
|
||||
//
|
||||
this.userButton_log.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.userButton_log.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton_log.CustomerInformation = "";
|
||||
this.userButton_log.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton_log.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton_log.Location = new System.Drawing.Point(288, 517);
|
||||
this.userButton_log.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton_log.Name = "userButton_log";
|
||||
this.userButton_log.Size = new System.Drawing.Size(63, 26);
|
||||
this.userButton_log.TabIndex = 18;
|
||||
this.userButton_log.UIText = "全部";
|
||||
this.userButton_log.Click += new System.EventHandler(this.userButton_log_Click);
|
||||
//
|
||||
// userButton8
|
||||
//
|
||||
this.userButton8.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton8.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton8.CustomerInformation = "";
|
||||
this.userButton8.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton8.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton8.Location = new System.Drawing.Point(736, 159);
|
||||
this.userButton8.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton8.Name = "userButton8";
|
||||
this.userButton8.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton8.TabIndex = 20;
|
||||
this.userButton8.UIText = "共享文件日志清空";
|
||||
this.userButton8.Click += new System.EventHandler(this.userButton8_Click);
|
||||
//
|
||||
// userButton9
|
||||
//
|
||||
this.userButton9.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton9.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton9.CustomerInformation = "";
|
||||
this.userButton9.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton9.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton9.Location = new System.Drawing.Point(626, 159);
|
||||
this.userButton9.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton9.Name = "userButton9";
|
||||
this.userButton9.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton9.TabIndex = 19;
|
||||
this.userButton9.UIText = "共享文件日志查看";
|
||||
this.userButton9.Click += new System.EventHandler(this.userButton9_Click);
|
||||
//
|
||||
// userButton10
|
||||
//
|
||||
this.userButton10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton10.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton10.CustomerInformation = "";
|
||||
this.userButton10.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton10.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton10.Location = new System.Drawing.Point(734, 208);
|
||||
this.userButton10.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton10.Name = "userButton10";
|
||||
this.userButton10.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton10.TabIndex = 22;
|
||||
this.userButton10.UIText = "建议反馈清空";
|
||||
this.userButton10.Click += new System.EventHandler(this.userButton10_Click);
|
||||
//
|
||||
// userButton11
|
||||
//
|
||||
this.userButton11.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton11.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton11.CustomerInformation = "";
|
||||
this.userButton11.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton11.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton11.Location = new System.Drawing.Point(626, 208);
|
||||
this.userButton11.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton11.Name = "userButton11";
|
||||
this.userButton11.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton11.TabIndex = 21;
|
||||
this.userButton11.UIText = "建议反馈查看";
|
||||
this.userButton11.Click += new System.EventHandler(this.userButton11_Click);
|
||||
//
|
||||
// userButton12
|
||||
//
|
||||
this.userButton12.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton12.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton12.CustomerInformation = "";
|
||||
this.userButton12.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton12.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton12.Location = new System.Drawing.Point(734, 255);
|
||||
this.userButton12.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton12.Name = "userButton12";
|
||||
this.userButton12.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton12.TabIndex = 24;
|
||||
this.userButton12.UIText = "Udp日志清空";
|
||||
this.userButton12.Click += new System.EventHandler(this.userButton12_Click);
|
||||
//
|
||||
// userButton13
|
||||
//
|
||||
this.userButton13.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton13.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton13.CustomerInformation = "";
|
||||
this.userButton13.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton13.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton13.Location = new System.Drawing.Point(626, 255);
|
||||
this.userButton13.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton13.Name = "userButton13";
|
||||
this.userButton13.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton13.TabIndex = 23;
|
||||
this.userButton13.UIText = "Udp日志查看";
|
||||
this.userButton13.Click += new System.EventHandler(this.userButton13_Click);
|
||||
//
|
||||
// userButton14
|
||||
//
|
||||
this.userButton14.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton14.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton14.CustomerInformation = "";
|
||||
this.userButton14.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton14.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton14.Location = new System.Drawing.Point(626, 300);
|
||||
this.userButton14.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton14.Name = "userButton14";
|
||||
this.userButton14.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton14.TabIndex = 25;
|
||||
this.userButton14.UIText = "客户端日志查看";
|
||||
this.userButton14.Click += new System.EventHandler(this.userButton14_Click);
|
||||
//
|
||||
// userButton15
|
||||
//
|
||||
this.userButton15.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton15.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton15.CustomerInformation = "";
|
||||
this.userButton15.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton15.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton15.Location = new System.Drawing.Point(734, 300);
|
||||
this.userButton15.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton15.Name = "userButton15";
|
||||
this.userButton15.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton15.TabIndex = 26;
|
||||
this.userButton15.UIText = "客户端日志清空";
|
||||
this.userButton15.Click += new System.EventHandler(this.userButton15_Click);
|
||||
this.logNetAnalysisControl1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.logNetAnalysisControl1.Location = new System.Drawing.Point(8, 8);
|
||||
this.logNetAnalysisControl1.Name = "logNetAnalysisControl1";
|
||||
this.logNetAnalysisControl1.Size = new System.Drawing.Size(783, 693);
|
||||
this.logNetAnalysisControl1.TabIndex = 47;
|
||||
this.logNetAnalysisControl1.Load += new System.EventHandler(this.logNetAnalysisControl1_Load);
|
||||
//
|
||||
// userButton16
|
||||
//
|
||||
@@ -390,11 +68,11 @@ namespace ClientsLibrary
|
||||
this.userButton16.CustomerInformation = "";
|
||||
this.userButton16.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton16.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton16.Location = new System.Drawing.Point(734, 344);
|
||||
this.userButton16.Location = new System.Drawing.Point(905, 344);
|
||||
this.userButton16.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton16.Name = "userButton16";
|
||||
this.userButton16.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton16.TabIndex = 28;
|
||||
this.userButton16.TabIndex = 46;
|
||||
this.userButton16.UIText = "头像日志清空";
|
||||
this.userButton16.Click += new System.EventHandler(this.userButton16_Click);
|
||||
//
|
||||
@@ -405,19 +83,260 @@ namespace ClientsLibrary
|
||||
this.userButton17.CustomerInformation = "";
|
||||
this.userButton17.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton17.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton17.Location = new System.Drawing.Point(626, 344);
|
||||
this.userButton17.Location = new System.Drawing.Point(797, 344);
|
||||
this.userButton17.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton17.Name = "userButton17";
|
||||
this.userButton17.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton17.TabIndex = 27;
|
||||
this.userButton17.TabIndex = 45;
|
||||
this.userButton17.UIText = "头像日志查看";
|
||||
this.userButton17.Click += new System.EventHandler(this.userButton17_Click);
|
||||
//
|
||||
// FormLog
|
||||
// userButton15
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
|
||||
this.userButton15.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton15.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton15.CustomerInformation = "";
|
||||
this.userButton15.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton15.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton15.Location = new System.Drawing.Point(905, 300);
|
||||
this.userButton15.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton15.Name = "userButton15";
|
||||
this.userButton15.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton15.TabIndex = 44;
|
||||
this.userButton15.UIText = "客户端日志清空";
|
||||
this.userButton15.Click += new System.EventHandler(this.userButton15_Click);
|
||||
//
|
||||
// userButton14
|
||||
//
|
||||
this.userButton14.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton14.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton14.CustomerInformation = "";
|
||||
this.userButton14.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton14.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton14.Location = new System.Drawing.Point(797, 300);
|
||||
this.userButton14.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton14.Name = "userButton14";
|
||||
this.userButton14.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton14.TabIndex = 43;
|
||||
this.userButton14.UIText = "客户端日志查看";
|
||||
this.userButton14.Click += new System.EventHandler(this.userButton14_Click);
|
||||
//
|
||||
// userButton12
|
||||
//
|
||||
this.userButton12.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton12.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton12.CustomerInformation = "";
|
||||
this.userButton12.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton12.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton12.Location = new System.Drawing.Point(905, 255);
|
||||
this.userButton12.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton12.Name = "userButton12";
|
||||
this.userButton12.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton12.TabIndex = 42;
|
||||
this.userButton12.UIText = "Udp日志清空";
|
||||
this.userButton12.Click += new System.EventHandler(this.userButton12_Click);
|
||||
//
|
||||
// userButton13
|
||||
//
|
||||
this.userButton13.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton13.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton13.CustomerInformation = "";
|
||||
this.userButton13.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton13.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton13.Location = new System.Drawing.Point(797, 255);
|
||||
this.userButton13.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton13.Name = "userButton13";
|
||||
this.userButton13.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton13.TabIndex = 41;
|
||||
this.userButton13.UIText = "Udp日志查看";
|
||||
this.userButton13.Click += new System.EventHandler(this.userButton13_Click);
|
||||
//
|
||||
// userButton10
|
||||
//
|
||||
this.userButton10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton10.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton10.CustomerInformation = "";
|
||||
this.userButton10.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton10.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton10.Location = new System.Drawing.Point(905, 208);
|
||||
this.userButton10.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton10.Name = "userButton10";
|
||||
this.userButton10.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton10.TabIndex = 40;
|
||||
this.userButton10.UIText = "建议反馈清空";
|
||||
this.userButton10.Click += new System.EventHandler(this.userButton10_Click);
|
||||
//
|
||||
// userButton11
|
||||
//
|
||||
this.userButton11.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton11.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton11.CustomerInformation = "";
|
||||
this.userButton11.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton11.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton11.Location = new System.Drawing.Point(797, 208);
|
||||
this.userButton11.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton11.Name = "userButton11";
|
||||
this.userButton11.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton11.TabIndex = 39;
|
||||
this.userButton11.UIText = "建议反馈查看";
|
||||
this.userButton11.Click += new System.EventHandler(this.userButton11_Click);
|
||||
//
|
||||
// userButton8
|
||||
//
|
||||
this.userButton8.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton8.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton8.CustomerInformation = "";
|
||||
this.userButton8.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton8.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton8.Location = new System.Drawing.Point(907, 159);
|
||||
this.userButton8.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton8.Name = "userButton8";
|
||||
this.userButton8.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton8.TabIndex = 38;
|
||||
this.userButton8.UIText = "共享文件日志清空";
|
||||
this.userButton8.Click += new System.EventHandler(this.userButton8_Click);
|
||||
//
|
||||
// userButton9
|
||||
//
|
||||
this.userButton9.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton9.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton9.CustomerInformation = "";
|
||||
this.userButton9.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton9.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton9.Location = new System.Drawing.Point(797, 159);
|
||||
this.userButton9.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton9.Name = "userButton9";
|
||||
this.userButton9.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton9.TabIndex = 37;
|
||||
this.userButton9.UIText = "共享文件日志查看";
|
||||
this.userButton9.Click += new System.EventHandler(this.userButton9_Click);
|
||||
//
|
||||
// userButton6
|
||||
//
|
||||
this.userButton6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton6.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton6.CustomerInformation = "";
|
||||
this.userButton6.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton6.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton6.Location = new System.Drawing.Point(907, 674);
|
||||
this.userButton6.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton6.Name = "userButton6";
|
||||
this.userButton6.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton6.TabIndex = 36;
|
||||
this.userButton6.UIText = "运行日志清空";
|
||||
this.userButton6.Click += new System.EventHandler(this.userButton6_Click);
|
||||
//
|
||||
// userButton7
|
||||
//
|
||||
this.userButton7.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton7.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton7.CustomerInformation = "";
|
||||
this.userButton7.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton7.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton7.Location = new System.Drawing.Point(797, 674);
|
||||
this.userButton7.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton7.Name = "userButton7";
|
||||
this.userButton7.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton7.TabIndex = 35;
|
||||
this.userButton7.UIText = "运行日志查看";
|
||||
this.userButton7.Click += new System.EventHandler(this.userButton7_Click);
|
||||
//
|
||||
// userButton5
|
||||
//
|
||||
this.userButton5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton5.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton5.CustomerInformation = "";
|
||||
this.userButton5.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton5.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton5.Location = new System.Drawing.Point(907, 111);
|
||||
this.userButton5.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton5.Name = "userButton5";
|
||||
this.userButton5.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton5.TabIndex = 34;
|
||||
this.userButton5.UIText = "更新日志清空";
|
||||
this.userButton5.Click += new System.EventHandler(this.userButton5_Click);
|
||||
//
|
||||
// userButton4
|
||||
//
|
||||
this.userButton4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton4.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton4.CustomerInformation = "";
|
||||
this.userButton4.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton4.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton4.Location = new System.Drawing.Point(797, 111);
|
||||
this.userButton4.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton4.Name = "userButton4";
|
||||
this.userButton4.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton4.TabIndex = 33;
|
||||
this.userButton4.UIText = "更新日志查看";
|
||||
this.userButton4.Click += new System.EventHandler(this.userButton4_Click);
|
||||
//
|
||||
// userButton3
|
||||
//
|
||||
this.userButton3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton3.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton3.CustomerInformation = "";
|
||||
this.userButton3.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton3.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton3.Location = new System.Drawing.Point(907, 62);
|
||||
this.userButton3.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton3.Name = "userButton3";
|
||||
this.userButton3.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton3.TabIndex = 32;
|
||||
this.userButton3.UIText = "同步日志清空";
|
||||
this.userButton3.Click += new System.EventHandler(this.userButton3_Click);
|
||||
//
|
||||
// userButton2
|
||||
//
|
||||
this.userButton2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton2.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton2.CustomerInformation = "";
|
||||
this.userButton2.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton2.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton2.Location = new System.Drawing.Point(797, 62);
|
||||
this.userButton2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton2.Name = "userButton2";
|
||||
this.userButton2.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton2.TabIndex = 31;
|
||||
this.userButton2.UIText = "同步日志查看";
|
||||
this.userButton2.Click += new System.EventHandler(this.userButton2_Click);
|
||||
//
|
||||
// userButton1
|
||||
//
|
||||
this.userButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton1.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton1.CustomerInformation = "";
|
||||
this.userButton1.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton1.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton1.Location = new System.Drawing.Point(908, 13);
|
||||
this.userButton1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton1.Name = "userButton1";
|
||||
this.userButton1.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton1.TabIndex = 30;
|
||||
this.userButton1.UIText = "网络日志清空";
|
||||
this.userButton1.Click += new System.EventHandler(this.userButton1_Click);
|
||||
//
|
||||
// userButton_login
|
||||
//
|
||||
this.userButton_login.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton_login.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton_login.CustomerInformation = "";
|
||||
this.userButton_login.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton_login.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton_login.Location = new System.Drawing.Point(799, 13);
|
||||
this.userButton_login.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton_login.Name = "userButton_login";
|
||||
this.userButton_login.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton_login.TabIndex = 29;
|
||||
this.userButton_login.UIText = "网络日志查看";
|
||||
this.userButton_login.Click += new System.EventHandler(this.userButton_login_Click);
|
||||
//
|
||||
// FormLogView
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(849, 547);
|
||||
this.ClientSize = new System.Drawing.Size(1023, 713);
|
||||
this.Controls.Add(this.logNetAnalysisControl1);
|
||||
this.Controls.Add(this.userButton16);
|
||||
this.Controls.Add(this.userButton17);
|
||||
this.Controls.Add(this.userButton15);
|
||||
@@ -428,11 +347,6 @@ namespace ClientsLibrary
|
||||
this.Controls.Add(this.userButton11);
|
||||
this.Controls.Add(this.userButton8);
|
||||
this.Controls.Add(this.userButton9);
|
||||
this.Controls.Add(this.userButton_log);
|
||||
this.Controls.Add(this.userButton_log4);
|
||||
this.Controls.Add(this.userButton_log3);
|
||||
this.Controls.Add(this.userButton_log2);
|
||||
this.Controls.Add(this.userButton_log1);
|
||||
this.Controls.Add(this.userButton6);
|
||||
this.Controls.Add(this.userButton7);
|
||||
this.Controls.Add(this.userButton5);
|
||||
@@ -441,43 +355,35 @@ namespace ClientsLibrary
|
||||
this.Controls.Add(this.userButton2);
|
||||
this.Controls.Add(this.userButton1);
|
||||
this.Controls.Add(this.userButton_login);
|
||||
this.Controls.Add(this.textBox1);
|
||||
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 = "FormLog";
|
||||
this.Name = "FormLogView";
|
||||
this.ShowIcon = false;
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "网络日志查看";
|
||||
this.Load += new System.EventHandler(this.FormLog_Load);
|
||||
this.Text = "日志查看器";
|
||||
this.Load += new System.EventHandler(this.FormLogView_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.TextBox textBox1;
|
||||
private UserButton userButton_login;
|
||||
private UserButton userButton1;
|
||||
private UserButton userButton2;
|
||||
private UserButton userButton3;
|
||||
private UserButton userButton4;
|
||||
private UserButton userButton5;
|
||||
private UserButton userButton6;
|
||||
private UserButton userButton7;
|
||||
private UserButton userButton_log1;
|
||||
private UserButton userButton_log2;
|
||||
private UserButton userButton_log3;
|
||||
private UserButton userButton_log4;
|
||||
private UserButton userButton_log;
|
||||
private UserButton userButton8;
|
||||
private UserButton userButton9;
|
||||
private UserButton userButton10;
|
||||
private UserButton userButton11;
|
||||
private UserButton userButton12;
|
||||
private UserButton userButton13;
|
||||
private UserButton userButton14;
|
||||
private UserButton userButton15;
|
||||
private UserButton userButton16;
|
||||
private UserButton userButton17;
|
||||
private HslCommunication.Controls.UserButton userButton16;
|
||||
private HslCommunication.Controls.UserButton userButton17;
|
||||
private HslCommunication.Controls.UserButton userButton15;
|
||||
private HslCommunication.Controls.UserButton userButton14;
|
||||
private HslCommunication.Controls.UserButton userButton12;
|
||||
private HslCommunication.Controls.UserButton userButton13;
|
||||
private HslCommunication.Controls.UserButton userButton10;
|
||||
private HslCommunication.Controls.UserButton userButton11;
|
||||
private HslCommunication.Controls.UserButton userButton8;
|
||||
private HslCommunication.Controls.UserButton userButton9;
|
||||
private HslCommunication.Controls.UserButton userButton6;
|
||||
private HslCommunication.Controls.UserButton userButton7;
|
||||
private HslCommunication.Controls.UserButton userButton5;
|
||||
private HslCommunication.Controls.UserButton userButton4;
|
||||
private HslCommunication.Controls.UserButton userButton3;
|
||||
private HslCommunication.Controls.UserButton userButton2;
|
||||
private HslCommunication.Controls.UserButton userButton1;
|
||||
private HslCommunication.Controls.UserButton userButton_login;
|
||||
private HslCommunication.LogNet.LogNetAnalysisControl logNetAnalysisControl1;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,7 @@
|
||||
using System;
|
||||
using CommonLibrary;
|
||||
using HslCommunication;
|
||||
using HslCommunication.Enthernet;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
@@ -6,47 +9,45 @@ using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using CommonLibrary;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
using HslCommunication;
|
||||
using HslCommunication.Enthernet;
|
||||
|
||||
|
||||
namespace ClientsLibrary
|
||||
{
|
||||
public partial class FormLog : Form
|
||||
public partial class FormLogView : Form
|
||||
{
|
||||
public FormLog()
|
||||
public FormLogView()
|
||||
{
|
||||
InitializeComponent();
|
||||
net_simplify_client = UserClient.Net_simplify_client;
|
||||
}
|
||||
|
||||
private Net_Simplify_Client net_simplify_client = null;
|
||||
|
||||
private void FormLog_Load(object sender, EventArgs e)
|
||||
private void FormLogView_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private NetSimplifyClient net_simplify_client = null;
|
||||
|
||||
private void ReadFromServer(int head_code)
|
||||
{
|
||||
OperateResultString result = net_simplify_client.ReadFromServer(head_code);
|
||||
if (result.IsSuccess)
|
||||
{
|
||||
textBox1.Text = result.Content;
|
||||
LogTemp = result.Content;
|
||||
logNetAnalysisControl1.SetLogNetSource(result.Content);
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show(result.ToMessageShowString());
|
||||
}
|
||||
else textBox1.Text = result.ToMessageShowString();
|
||||
}
|
||||
|
||||
private void ClearFromServer(int head_code)
|
||||
{
|
||||
OperateResultString result = net_simplify_client.ReadFromServer(head_code);
|
||||
if (result.IsSuccess) textBox1.Text = "清除成功";
|
||||
else textBox1.Text = result.ToMessageShowString();
|
||||
if (result.IsSuccess) MessageBox.Show("清除成功");
|
||||
else MessageBox.Show(result.ToMessageShowString());
|
||||
}
|
||||
|
||||
|
||||
private void userButton_login_Click(object sender, EventArgs e)
|
||||
{
|
||||
ReadFromServer(CommonHeadCode.SimplifyHeadCode.网络日志查看);
|
||||
@@ -135,52 +136,9 @@ namespace ClientsLibrary
|
||||
ClearFromServer(CommonHeadCode.SimplifyHeadCode.头像日志清空);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询日志的缓存
|
||||
/// </summary>
|
||||
private string LogTemp = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 筛选出符合需求的日志
|
||||
/// </summary>
|
||||
/// <param name="filter"></param>
|
||||
/// <returns></returns>
|
||||
private string FilterString(string filter)
|
||||
private void logNetAnalysisControl1_Load(object sender, EventArgs e)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
MatchCollection mc = Regex.Matches(LogTemp, @"\u0002\[" + filter + @"[^\u0002]+");
|
||||
foreach (Match m in mc)
|
||||
{
|
||||
sb.Append(m.Value);
|
||||
}
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
private void userButton_log1_Click(object sender, EventArgs e)
|
||||
{
|
||||
textBox1.Text = FilterString(HslCommunication.BasicFramework.SoftLogHelper.Normal);
|
||||
}
|
||||
|
||||
private void userButton_log2_Click(object sender, EventArgs e)
|
||||
{
|
||||
textBox1.Text = FilterString(HslCommunication.BasicFramework.SoftLogHelper.Information);
|
||||
}
|
||||
|
||||
private void userButton_log3_Click(object sender, EventArgs e)
|
||||
{
|
||||
textBox1.Text = FilterString(HslCommunication.BasicFramework.SoftLogHelper.Warnning);
|
||||
}
|
||||
|
||||
private void userButton_log4_Click(object sender, EventArgs e)
|
||||
{
|
||||
textBox1.Text = FilterString(HslCommunication.BasicFramework.SoftLogHelper.Error);
|
||||
}
|
||||
|
||||
private void userButton_log_Click(object sender, EventArgs e)
|
||||
{
|
||||
textBox1.Text = LogTemp;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -32,7 +32,7 @@ namespace ClientsLibrary
|
||||
textBox4.Text = (new UserAccount()).ForbidMessage;
|
||||
}
|
||||
|
||||
private Net_Simplify_Client net_client = null;
|
||||
private NetSimplifyClient net_client = null;
|
||||
|
||||
private void userButton_login_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
@@ -25,9 +25,9 @@ namespace ClientsLibrary
|
||||
public static SystemVersion CurrentVersion { get; } = new SystemVersion("1.0.0");
|
||||
|
||||
/// <summary>
|
||||
/// 服务器的IP地址,默认为127.0.0.1,可用于单机调试
|
||||
/// 服务器的IP地址,默认为127.0.0.1,可用于单机调试,云端:117.48.203.204
|
||||
/// </summary>
|
||||
public static string ServerIp { get; } = "117.48.203.204";//用于测试的云服务器地址
|
||||
public static string ServerIp { get; } = "127.0.0.1";//用于测试的云服务器地址
|
||||
|
||||
/// <summary>
|
||||
/// 所有版本更新信息的对象
|
||||
@@ -66,7 +66,7 @@ namespace ClientsLibrary
|
||||
/// <summary>
|
||||
/// 用于访问服务器数据的网络对象类,必须修改这个端口参数,否则运行失败
|
||||
/// </summary>
|
||||
public static Net_Simplify_Client Net_simplify_client = new Net_Simplify_Client(
|
||||
public static NetSimplifyClient Net_simplify_client = new NetSimplifyClient(
|
||||
new System.Net.IPEndPoint(System.Net.IPAddress.Parse(ServerIp),
|
||||
CommonLibrary.CommonLibrary.Port_Second_Net))
|
||||
{
|
||||
@@ -77,7 +77,7 @@ namespace ClientsLibrary
|
||||
/// <summary>
|
||||
/// 用于使用udp向服务器进行发送即时可丢失数据的对象
|
||||
/// </summary>
|
||||
public static Net_Udp_Client Net_Udp_Client = new Net_Udp_Client(
|
||||
public static NetUdpClient Net_Udp_Client = new NetUdpClient(
|
||||
new System.Net.IPEndPoint(System.Net.IPAddress.Parse(ServerIp),
|
||||
CommonLibrary.CommonLibrary.Port_Udp_Server))
|
||||
{
|
||||
@@ -90,12 +90,8 @@ namespace ClientsLibrary
|
||||
if (e.ExceptionObject is Exception ex)
|
||||
{
|
||||
//使用UDP方法传送会服务器
|
||||
string info = $"{Environment.NewLine}信息:{ex.Message}" +
|
||||
$"{Environment.NewLine}类型:{ex.GetType().ToString()}" +
|
||||
$"{Environment.NewLine}堆栈:{ex.StackTrace}" +
|
||||
$"{Environment.NewLine}方法:{ex.TargetSite.Name}" +
|
||||
$"{Environment.NewLine}" + "=".PadLeft(50, '=');
|
||||
UserClient.Net_simplify_client.ReadFromServer(CommonHeadCode.SimplifyHeadCode.异常消息, info);
|
||||
string info = HslCommunication.LogNet.LogNetManagment.GetSaveStringFromException(null, ex);
|
||||
Net_simplify_client.ReadFromServer(CommonHeadCode.SimplifyHeadCode.异常消息, info);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace CommonLibrary
|
||||
if (name == all_list_accounts[i].UserName)
|
||||
{
|
||||
all_list_accounts[i].Password = password;
|
||||
LogHelper?.SaveInformation(Resource.StringResouce.AccountModifyPassword + name);
|
||||
ILogNet?.WriteInfo(Resource.StringResouce.AccountModifyPassword + name);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -146,7 +146,7 @@ namespace CommonLibrary
|
||||
}
|
||||
}
|
||||
all_list_accounts.Add(account);
|
||||
LogHelper?.SaveInformation(Resource.StringResouce.AccountAddSuccess + account.UserName);
|
||||
ILogNet?.WriteInfo(Resource.StringResouce.AccountAddSuccess + account.UserName);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -164,7 +164,7 @@ namespace CommonLibrary
|
||||
if (name == all_list_accounts[i].UserName)
|
||||
{
|
||||
all_list_accounts.RemoveAt(i);
|
||||
LogHelper?.SaveInformation(Resource.StringResouce.AccountDeleteSuccess + name);
|
||||
ILogNet?.WriteInfo(Resource.StringResouce.AccountDeleteSuccess + name);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -212,7 +212,7 @@ namespace CommonLibrary
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogHelper?.SaveError(Resource.StringResouce.AccountLoadFailed, ex);
|
||||
ILogNet?.WriteException(Resource.StringResouce.AccountLoadFailed, ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -219,7 +219,7 @@ namespace 软件系统客户端Wpf
|
||||
|
||||
private void MenuItem日志查看_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
using (FormLog flg = new FormLog())
|
||||
using (FormLogView flg = new FormLogView())
|
||||
{
|
||||
flg.ShowDialog();
|
||||
}
|
||||
@@ -375,7 +375,7 @@ namespace 软件系统客户端Wpf
|
||||
|
||||
#region 异步网络块
|
||||
|
||||
private Net_Socket_Client net_socket_client = new Net_Socket_Client();
|
||||
private NetComplexClient net_socket_client = new NetComplexClient();
|
||||
|
||||
private void Net_Socket_Client_Initialization()
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ using ClientsLibrary;
|
||||
|
||||
/***************************************************************************************
|
||||
*
|
||||
* 模版日期 2017-06-16
|
||||
* 模版日期 2017-09-02
|
||||
* 创建人 胡少林
|
||||
* 版权所有 胡少林
|
||||
* 授权说明 模版仅授权个人使用,如需商用,请联系hsl200909@163.com洽谈
|
||||
@@ -201,7 +201,7 @@ namespace 软件系统客户端模版
|
||||
|
||||
private void 日志查看ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
using (FormLog flg = new FormLog())
|
||||
using (FormLogView flg = new FormLogView())
|
||||
{
|
||||
flg.ShowDialog();
|
||||
}
|
||||
@@ -309,7 +309,7 @@ namespace 软件系统客户端模版
|
||||
|
||||
#region 异步网络块
|
||||
|
||||
private Net_Socket_Client net_socket_client = new Net_Socket_Client();
|
||||
private NetComplexClient net_socket_client = new NetComplexClient();
|
||||
|
||||
private void Net_Socket_Client_Initialization()
|
||||
{
|
||||
|
||||
@@ -12,11 +12,12 @@ using CommonLibrary;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using HslCommunication.BasicFramework;
|
||||
using System.Diagnostics;
|
||||
using HslCommunication.LogNet;
|
||||
|
||||
|
||||
/******************************************************************************************
|
||||
*
|
||||
* 模版日期 2017-06-16
|
||||
* 模版日期 2017-09-02
|
||||
* 创建人 Richard.Hu
|
||||
* 版权所有 Richard.Hu
|
||||
* 授权说明 模版仅授权个人使用,如需商用,请联系hsl200909@163.com洽谈
|
||||
@@ -96,20 +97,11 @@ namespace 软件系统服务端模版
|
||||
//邮件系统初始化
|
||||
SoftMailInitialization();
|
||||
//初始化日志工具
|
||||
RuntimeLogHelper = new SoftLogHelper()
|
||||
{
|
||||
LogSaveFileName = LogSavePath + @"\log.txt",
|
||||
};
|
||||
RuntimeLogHelper = new LogNetSingle(LogSavePath + @"\log.txt");
|
||||
//初始化反馈信息工具
|
||||
AdviceLogHelper = new SoftLogHelper()
|
||||
{
|
||||
LogSaveFileName = LogSavePath + @"\advice_log.txt",
|
||||
};
|
||||
AdviceLogHelper = new LogNetSingle(LogSavePath + @"\advice_log.txt");
|
||||
//初始化客户端异常日志工具
|
||||
ClientsLogHelper = new SoftLogHelper()
|
||||
{
|
||||
LogSaveFileName = LogSavePath + @"\clients_log.txt",
|
||||
};
|
||||
ClientsLogHelper = new LogNetSingle(LogSavePath + @"\clients_log.txt");
|
||||
//保存路径初始化
|
||||
UserServer.ServerSettings.FileSavePath = Application.StartupPath + @"\settings.txt";
|
||||
//加载参数
|
||||
@@ -120,7 +112,7 @@ namespace 软件系统服务端模版
|
||||
//加载账户信息
|
||||
UserServer.ServerAccounts.FileSavePath = Application.StartupPath + @"\accounts.txt";
|
||||
UserServer.ServerAccounts.LoadByFile();
|
||||
UserServer.ServerAccounts.LogHelper = RuntimeLogHelper;
|
||||
UserServer.ServerAccounts.ILogNet = RuntimeLogHelper;
|
||||
//初始化聊天信息
|
||||
ChatInitialization();
|
||||
}
|
||||
@@ -202,7 +194,7 @@ namespace 软件系统服务端模版
|
||||
{
|
||||
if (e.ExceptionObject is Exception ex)
|
||||
{
|
||||
RuntimeLogHelper.SaveError("UnhandledException:", ex);
|
||||
RuntimeLogHelper.WriteException("UnhandledException:", ex);
|
||||
//发送到自己的EMAIL
|
||||
SendUserMail(ex);
|
||||
}
|
||||
@@ -335,12 +327,12 @@ namespace 软件系统服务端模版
|
||||
/// <summary>
|
||||
/// 支持软件自动更新的后台服务引擎
|
||||
/// </summary>
|
||||
private Net_SoftUpdate_Server net_soft_update_Server = new Net_SoftUpdate_Server();
|
||||
private NetSoftUpdateServer net_soft_update_Server = new NetSoftUpdateServer();
|
||||
private void Net_SoftUpdate_Server_Initialization()
|
||||
{
|
||||
try
|
||||
{
|
||||
net_soft_update_Server.LogHelper.LogSaveFileName = LogSavePath + @"\update_log.txt";
|
||||
net_soft_update_Server.LogNet = new LogNetSingle(LogSavePath + @"\update_log.txt");
|
||||
//在服务器的这个路径下,放置客户端运行的所有文件,不要包含settings文件,不要从此处运行
|
||||
//只放置exe和dll组件,必须放置:软件自动更新.exe
|
||||
net_soft_update_Server.KeyToken = CommonHeadCode.KeyToken;
|
||||
@@ -359,7 +351,7 @@ namespace 软件系统服务端模版
|
||||
/// <summary>
|
||||
/// 用于局域网异地更新服务器的客户端程序的引擎,仅限客户端
|
||||
/// </summary>
|
||||
private Net_File_Server net_file_update = new Net_File_Server();
|
||||
private NetFileServer net_file_update = new NetFileServer();
|
||||
/// <summary>
|
||||
/// 软件异地更新的初始化,如不需要可以不启动,该功能支持发送客户端文件至服务器实现覆盖更新
|
||||
/// </summary>
|
||||
@@ -368,7 +360,7 @@ namespace 软件系统服务端模版
|
||||
try
|
||||
{
|
||||
net_file_update.FilesPath = Application.StartupPath + @"\ClientFiles";//服务器客户端需要更新的路径,与上述一致
|
||||
net_file_update.LogHelper.LogSaveFileName = LogSavePath + @"\update_file_log.txt";
|
||||
net_file_update.LogNet = new LogNetSingle(LogSavePath + @"\update_file_log.txt");
|
||||
net_file_update.KeyToken = CommonHeadCode.KeyToken;
|
||||
net_file_update.ServerStart(CommonLibrary.CommonLibrary.Port_Update_Remote);
|
||||
}
|
||||
@@ -383,7 +375,7 @@ namespace 软件系统服务端模版
|
||||
/// <summary>
|
||||
/// 用户同步数据传送的引擎
|
||||
/// </summary>
|
||||
private Net_Simplify_Server net_simplify_server = new Net_Simplify_Server();
|
||||
private NetSimplifyServer net_simplify_server = new NetSimplifyServer();
|
||||
/// <summary>
|
||||
/// 同步传送数据的初始化
|
||||
/// </summary>
|
||||
@@ -392,7 +384,8 @@ namespace 软件系统服务端模版
|
||||
try
|
||||
{
|
||||
net_simplify_server.KeyToken = CommonHeadCode.KeyToken;//设置身份令牌
|
||||
net_simplify_server.LogHelper.LogSaveFileName = LogSavePath + @"\simplify_log.txt";//日志路径
|
||||
net_simplify_server.LogNet = new LogNetSingle(LogSavePath + @"\simplify_log.txt");//日志路径
|
||||
net_simplify_server.LogNet.SetMessageDegree(HslMessageDegree.DEBUG);//默认debug及以上级别日志均进行存储,根据需要自行选择
|
||||
net_simplify_server.ReceiveStringEvent += Net_simplify_server_ReceiveStringEvent;//接收到字符串触发
|
||||
net_simplify_server.ReceivedBytesEvent += Net_simplify_server_ReceivedBytesEvent;//接收到字节触发
|
||||
net_simplify_server.ServerStart(CommonLibrary.CommonLibrary.Port_Second_Net);
|
||||
@@ -546,7 +539,7 @@ namespace 软件系统服务端模版
|
||||
UserServer.ServerSettings.SaveToFile();
|
||||
toolStripStatusLabel_version.Text = UserServer.ServerSettings.SystemVersion.ToString();
|
||||
//记录数据
|
||||
RuntimeLogHelper.SaveInformation($"更改了版本号:{data}");
|
||||
RuntimeLogHelper.WriteInfo($"更改了版本号:{data}");
|
||||
net_simplify_server.SendMessage(state, customer, "1");
|
||||
}
|
||||
catch
|
||||
@@ -565,7 +558,7 @@ namespace 软件系统服务端模版
|
||||
}
|
||||
else if (customer == CommonHeadCode.SimplifyHeadCode.意见反馈)
|
||||
{
|
||||
AdviceLogHelper.SaveInformation(data);
|
||||
AdviceLogHelper.WriteInfo(data);
|
||||
net_simplify_server.SendMessage(state, customer, "成功");
|
||||
}
|
||||
else if (customer == CommonHeadCode.SimplifyHeadCode.群发消息)
|
||||
@@ -575,7 +568,7 @@ namespace 软件系统服务端模版
|
||||
}
|
||||
else if (customer == CommonHeadCode.SimplifyHeadCode.异常消息)
|
||||
{
|
||||
ClientsLogHelper.SaveError(data);
|
||||
ClientsLogHelper.WriteError(data);
|
||||
net_simplify_server.SendMessage(state, customer, "成功");
|
||||
//发送到邮箱
|
||||
SendUserMail("异常记录", "时间:" + DateTime.Now.ToString("O") + Environment.NewLine + data);
|
||||
@@ -596,7 +589,7 @@ namespace 软件系统服务端模版
|
||||
catch(Exception ex)
|
||||
{
|
||||
net_simplify_server.SendMessage(state, customer, "N");
|
||||
RuntimeLogHelper.SaveError(ex);
|
||||
RuntimeLogHelper.WriteException(null, ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -640,102 +633,138 @@ namespace 软件系统服务端模版
|
||||
{
|
||||
if (customer == CommonHeadCode.SimplifyHeadCode.网络日志查看)
|
||||
{
|
||||
net_simplify_server.SendMessage(state, customer, net_socket_server.LogHelper.GetLogText());
|
||||
RuntimeLogHelper.SaveInformation("网络日志查看");
|
||||
LogNetSingle logNet = (LogNetSingle)net_socket_server.LogNet;
|
||||
net_simplify_server.SendMessage(state, customer, logNet.GetAllSavedLog());
|
||||
RuntimeLogHelper.WriteInfo("网络日志查看");
|
||||
}
|
||||
else if (customer == CommonHeadCode.SimplifyHeadCode.网络日志清空)
|
||||
{
|
||||
net_socket_server.LogHelper.ClearLogText();
|
||||
if (net_socket_server.LogNet is LogNetSingle logNet)
|
||||
{
|
||||
logNet.ClearLog();
|
||||
}
|
||||
net_simplify_server.SendMessage(state, customer, "成功");
|
||||
RuntimeLogHelper.SaveWarnning("网络日志清空");
|
||||
RuntimeLogHelper.WriteWarn("网络日志清空");
|
||||
}
|
||||
else if (customer == CommonHeadCode.SimplifyHeadCode.同步日志查看)
|
||||
{
|
||||
net_simplify_server.SendMessage(state, customer, net_simplify_server.LogHelper.GetLogText());
|
||||
RuntimeLogHelper.SaveInformation("同步日志查看");
|
||||
LogNetSingle logNet = (LogNetSingle)net_simplify_server.LogNet;
|
||||
net_simplify_server.SendMessage(state, customer, logNet.GetAllSavedLog());
|
||||
RuntimeLogHelper.WriteInfo("同步日志查看");
|
||||
}
|
||||
else if (customer == CommonHeadCode.SimplifyHeadCode.同步日志清空)
|
||||
{
|
||||
net_simplify_server.LogHelper.ClearLogText();
|
||||
if (net_simplify_server.LogNet is LogNetSingle logNet)
|
||||
{
|
||||
logNet.ClearLog();
|
||||
}
|
||||
net_simplify_server.SendMessage(state, customer, "成功");
|
||||
RuntimeLogHelper.SaveWarnning("同步日志清空");
|
||||
RuntimeLogHelper.WriteWarn("同步日志清空");
|
||||
}
|
||||
else if (customer == CommonHeadCode.SimplifyHeadCode.更新日志查看)
|
||||
{
|
||||
net_simplify_server.SendMessage(state, customer, net_soft_update_Server.LogHelper.GetLogText());
|
||||
RuntimeLogHelper.SaveInformation("更新日志查看");
|
||||
LogNetSingle logNet = (LogNetSingle)net_soft_update_Server.LogNet;
|
||||
net_simplify_server.SendMessage(state, customer, logNet.GetAllSavedLog());
|
||||
RuntimeLogHelper.WriteInfo("更新日志查看");
|
||||
}
|
||||
else if (customer == CommonHeadCode.SimplifyHeadCode.更新日志清空)
|
||||
{
|
||||
net_soft_update_Server.LogHelper.ClearLogText();
|
||||
if (net_soft_update_Server.LogNet is LogNetSingle logNet)
|
||||
{
|
||||
logNet.ClearLog();
|
||||
}
|
||||
net_simplify_server.SendMessage(state, customer, "成功");
|
||||
RuntimeLogHelper.SaveWarnning("更新日志清空");
|
||||
RuntimeLogHelper.WriteWarn("更新日志清空");
|
||||
}
|
||||
else if (customer == CommonHeadCode.SimplifyHeadCode.运行日志查看)
|
||||
{
|
||||
net_simplify_server.SendMessage(state, customer, RuntimeLogHelper.GetLogText());
|
||||
RuntimeLogHelper.SaveInformation("运行日志查看");
|
||||
LogNetSingle logNet = (LogNetSingle)RuntimeLogHelper;
|
||||
net_simplify_server.SendMessage(state, customer, logNet.GetAllSavedLog());
|
||||
RuntimeLogHelper.WriteInfo("运行日志查看");
|
||||
}
|
||||
else if (customer == CommonHeadCode.SimplifyHeadCode.运行日志清空)
|
||||
{
|
||||
RuntimeLogHelper.ClearLogText();
|
||||
if (RuntimeLogHelper is LogNetSingle logNet)
|
||||
{
|
||||
logNet.ClearLog();
|
||||
}
|
||||
net_simplify_server.SendMessage(state, customer, "成功");
|
||||
RuntimeLogHelper.SaveInformation("运行日志清空");
|
||||
RuntimeLogHelper.WriteWarn("运行日志清空");
|
||||
}
|
||||
else if (customer == CommonHeadCode.SimplifyHeadCode.文件日志查看)
|
||||
{
|
||||
net_simplify_server.SendMessage(state, customer, net_simple_file_server.LogHelper.GetLogText());
|
||||
RuntimeLogHelper.SaveInformation("共享文件日志查看");
|
||||
LogNetSingle logNet = (LogNetSingle)net_simple_file_server.LogNet;
|
||||
net_simplify_server.SendMessage(state, customer, logNet.GetAllSavedLog());
|
||||
RuntimeLogHelper.WriteInfo("共享文件日志查看");
|
||||
}
|
||||
else if (customer == CommonHeadCode.SimplifyHeadCode.文件日志清空)
|
||||
{
|
||||
net_simple_file_server.LogHelper.ClearLogText();
|
||||
if (net_simple_file_server.LogNet is LogNetSingle logNet)
|
||||
{
|
||||
logNet.ClearLog();
|
||||
}
|
||||
net_simplify_server.SendMessage(state, customer, "成功");
|
||||
RuntimeLogHelper.SaveInformation("共享文件日志清空");
|
||||
RuntimeLogHelper.WriteWarn("共享文件日志清空");
|
||||
}
|
||||
else if (customer == CommonHeadCode.SimplifyHeadCode.反馈日志查看)
|
||||
{
|
||||
net_simplify_server.SendMessage(state, customer, AdviceLogHelper.GetLogText());
|
||||
RuntimeLogHelper.SaveInformation("建议反馈日志查看");
|
||||
LogNetSingle logNet = (LogNetSingle)AdviceLogHelper;
|
||||
net_simplify_server.SendMessage(state, customer, logNet.GetAllSavedLog());
|
||||
RuntimeLogHelper.WriteInfo("建议反馈日志查看");
|
||||
}
|
||||
else if (customer == CommonHeadCode.SimplifyHeadCode.反馈日志清空)
|
||||
{
|
||||
AdviceLogHelper.ClearLogText();
|
||||
if (AdviceLogHelper is LogNetSingle logNet)
|
||||
{
|
||||
logNet.ClearLog();
|
||||
}
|
||||
net_simplify_server.SendMessage(state, customer, "成功");
|
||||
RuntimeLogHelper.SaveWarnning("建议反馈日志清空");
|
||||
RuntimeLogHelper.WriteWarn("建议反馈日志清空");
|
||||
}
|
||||
else if (customer == CommonHeadCode.SimplifyHeadCode.UDP日志查看)
|
||||
{
|
||||
net_simplify_server.SendMessage(state, 0, net_udp_server.LogHelper.GetLogText());
|
||||
RuntimeLogHelper.SaveInformation("UDP日志查看");
|
||||
LogNetSingle logNet = (LogNetSingle)net_udp_server.LogNet;
|
||||
net_simplify_server.SendMessage(state, 0, logNet.GetAllSavedLog());
|
||||
RuntimeLogHelper.WriteInfo("UDP日志查看");
|
||||
}
|
||||
else if (customer == CommonHeadCode.SimplifyHeadCode.UDP日志清空)
|
||||
{
|
||||
net_udp_server.LogHelper.ClearLogText();
|
||||
if (net_udp_server.LogNet is LogNetSingle logNet)
|
||||
{
|
||||
logNet.ClearLog();
|
||||
}
|
||||
net_simplify_server.SendMessage(state, customer, "成功");
|
||||
RuntimeLogHelper.SaveWarnning("UDP日志清空");
|
||||
RuntimeLogHelper.WriteWarn("UDP日志清空");
|
||||
}
|
||||
else if (customer == CommonHeadCode.SimplifyHeadCode.客户端日志查看)
|
||||
{
|
||||
net_simplify_server.SendMessage(state, 0, ClientsLogHelper.GetLogText());
|
||||
RuntimeLogHelper.SaveInformation("客户端日志查看");
|
||||
LogNetSingle logNet = ClientsLogHelper as LogNetSingle;
|
||||
net_simplify_server.SendMessage(state, 0, logNet.GetAllSavedLog());
|
||||
RuntimeLogHelper.WriteInfo("客户端日志查看");
|
||||
}
|
||||
else if (customer == CommonHeadCode.SimplifyHeadCode.客户端日志清空)
|
||||
{
|
||||
ClientsLogHelper.ClearLogText();
|
||||
if (ClientsLogHelper is LogNetSingle logNet)
|
||||
{
|
||||
logNet.ClearLog();
|
||||
}
|
||||
net_simplify_server.SendMessage(state, customer, "成功");
|
||||
RuntimeLogHelper.SaveWarnning("客户端日志清空");
|
||||
RuntimeLogHelper.WriteWarn("客户端日志清空");
|
||||
}
|
||||
else if (customer == CommonHeadCode.SimplifyHeadCode.头像日志查看)
|
||||
{
|
||||
net_simplify_server.SendMessage(state, 0, net_file_Portrait.LogHelper.GetLogText());
|
||||
RuntimeLogHelper.SaveInformation("头像日志查看");
|
||||
LogNetSingle logNet = (LogNetSingle)net_file_Portrait.LogNet;
|
||||
net_simplify_server.SendMessage(state, 0, logNet.GetAllSavedLog());
|
||||
RuntimeLogHelper.WriteInfo("头像日志查看");
|
||||
}
|
||||
else if (customer == CommonHeadCode.SimplifyHeadCode.头像日志清空)
|
||||
{
|
||||
net_file_Portrait.LogHelper.ClearLogText();
|
||||
if (net_file_Portrait.LogNet is LogNetSingle logNet)
|
||||
{
|
||||
logNet.ClearLog();
|
||||
}
|
||||
net_simplify_server.SendMessage(state, customer, "成功");
|
||||
RuntimeLogHelper.SaveWarnning("头像日志清空");
|
||||
RuntimeLogHelper.WriteWarn("头像日志清空");
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -761,7 +790,7 @@ namespace 软件系统服务端模版
|
||||
/// <summary>
|
||||
/// 异步客户端管理引擎,维护所有的客户端在线情况,支持主动发数据到所有的客户端
|
||||
/// </summary>
|
||||
private Net_Socket_Server net_socket_server = new Net_Socket_Server();
|
||||
private NetComplexServer net_socket_server = new NetComplexServer();
|
||||
/// <summary>
|
||||
/// 异步传送数据的初始化
|
||||
/// </summary>
|
||||
@@ -770,7 +799,8 @@ namespace 软件系统服务端模版
|
||||
try
|
||||
{
|
||||
net_socket_server.KeyToken = CommonHeadCode.KeyToken;//设置身份令牌
|
||||
net_socket_server.LogHelper.LogSaveFileName = LogSavePath + @"\net_log.txt";
|
||||
net_socket_server.LogNet =new LogNetSingle(LogSavePath + @"\net_log.txt");
|
||||
net_socket_server.LogNet.SetMessageDegree(HslMessageDegree.DEBUG);//默认debug及以上级别日志均进行存储,根据需要自行选择
|
||||
net_socket_server.FormatClientOnline = "#IP:{0} Name:{1}";//必须为#开头,具体格式可由自身需求确定
|
||||
net_socket_server.IsSaveLogClientLineChange = true;//设置客户端上下线是否记录到日志
|
||||
net_socket_server.ClientOnline += new HslCommunication.NetBase.IEDelegate<AsyncStateOne>(Net_socket_server_ClientOnline);//客户端上线触发
|
||||
@@ -1029,7 +1059,8 @@ namespace 软件系统服务端模版
|
||||
FileSavePath = Application.StartupPath + @"\files.txt"
|
||||
};
|
||||
net_simple_file_server.ReadFromFile();
|
||||
net_simple_file_server.LogHelper.LogSaveFileName = LogSavePath + @"\share_file_log.txt";
|
||||
net_simple_file_server.LogNet =new LogNetSingle(LogSavePath + @"\share_file_log.txt");
|
||||
net_simple_file_server.LogNet.SetMessageDegree(HslMessageDegree.DEBUG);//默认debug及以上级别日志均进行存储,根据需要自行选择
|
||||
//文件存储路径
|
||||
net_simple_file_server.File_save_path = Application.StartupPath + @"\Files";
|
||||
net_simple_file_server.FileChange += Net_simple_file_server_FileChange;
|
||||
@@ -1064,7 +1095,7 @@ namespace 软件系统服务端模版
|
||||
/// <summary>
|
||||
/// 用来记录一般的事物日志
|
||||
/// </summary>
|
||||
private SoftLogHelper AdviceLogHelper { get; set; }
|
||||
private ILogNet AdviceLogHelper { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -1085,14 +1116,15 @@ namespace 软件系统服务端模版
|
||||
/// <summary>
|
||||
/// 服务器的UDP核心引擎
|
||||
/// </summary>
|
||||
private Net_Udp_Server net_udp_server { get; set; }
|
||||
private NetUdpServer net_udp_server { get; set; }
|
||||
|
||||
private void Net_Udp_Server_Initialization()
|
||||
{
|
||||
try
|
||||
{
|
||||
net_udp_server = new Net_Udp_Server();
|
||||
net_udp_server.LogHelper.LogSaveFileName = LogSavePath + @"\udp_log.txt";//日志路径
|
||||
net_udp_server = new NetUdpServer();
|
||||
net_udp_server.LogNet =new LogNetSingle(LogSavePath + @"\udp_log.txt");//日志路径
|
||||
net_udp_server.LogNet.SetMessageDegree(HslMessageDegree.DEBUG);//默认debug及以上级别日志均进行存储,根据需要自行选择
|
||||
net_udp_server.KeyToken = CommonHeadCode.KeyToken;
|
||||
net_udp_server.ReceiveCacheLength = 1024;//单次接收数据的缓冲长度
|
||||
net_udp_server.AcceptByte += Net_udp_server_AcceptByte;//接收到字节数据的时候触发事件
|
||||
@@ -1245,8 +1277,8 @@ namespace 软件系统服务端模版
|
||||
|
||||
/*********************************************************************************************************
|
||||
*
|
||||
* 说明 日志的使用方式分为4个等级,1.普通 2.信息 3.警告 4.错误 对应的调用方法不一致
|
||||
* 具体 如果想要调用存储[信息]等级日志,调用 RuntimeLogHelper.SaveInformation("等待存储的信息")
|
||||
* 说明 日志的使用方式分为5个等级,1.DEBUG 2.INFO 3.WARN 4.ERROR 5.FATAL 对应的调用方法不一致
|
||||
* 具体 如果想要调用存储[信息]等级日志,调用 RuntimeLogHelper.WriteInfo("等待存储的信息")
|
||||
* 大小 调用10000次存储信息后,日志文件大小在200K左右,需要手动进行情况日志
|
||||
* 注意 在存储信息时不要带有一个特殊字符,[\u0002]不可见的标识文本开始字符,会影响日志筛选时的准确性
|
||||
* 性能 该类使用了乐观并发模型技术,支持高并发的数据存储,可以安全的在线程间调用
|
||||
@@ -1256,11 +1288,11 @@ namespace 软件系统服务端模版
|
||||
/// <summary>
|
||||
/// 用来记录一般的事物日志
|
||||
/// </summary>
|
||||
private SoftLogHelper RuntimeLogHelper { get; set; }
|
||||
private ILogNet RuntimeLogHelper { get; set; }
|
||||
/// <summary>
|
||||
/// 用来记录客户端的异常日志
|
||||
/// </summary>
|
||||
private SoftLogHelper ClientsLogHelper { get; set; }
|
||||
private ILogNet ClientsLogHelper { get; set; }
|
||||
|
||||
|
||||
#endregion
|
||||
@@ -1306,7 +1338,7 @@ namespace 软件系统服务端模版
|
||||
/// <summary>
|
||||
/// 用于用户账户的头像文件保存
|
||||
/// </summary>
|
||||
private Net_File_Server net_file_Portrait = new Net_File_Server();
|
||||
private NetFileServer net_file_Portrait = new NetFileServer();
|
||||
/// <summary>
|
||||
/// 用户头像管理服务的引擎
|
||||
/// </summary>
|
||||
@@ -1315,7 +1347,7 @@ namespace 软件系统服务端模版
|
||||
try
|
||||
{
|
||||
net_file_Portrait.FilesPath = Application.StartupPath;
|
||||
net_file_Portrait.LogHelper.LogSaveFileName = LogSavePath + @"\Portrait_file_log.txt";
|
||||
net_file_Portrait.LogNet =new LogNetSingle(LogSavePath + @"\Portrait_file_log.txt");
|
||||
net_file_Portrait.KeyToken = CommonHeadCode.KeyToken;
|
||||
net_file_Portrait.ServerStart(CommonLibrary.CommonLibrary.Port_Portrait_Server);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user