网络组件更新,日志组件重新设计,查看日志更方便,网络类名称重新组织

This commit is contained in:
dathlin
2017-09-02 22:35:02 +08:00
parent b0f81c4a7c
commit b1852df1e4
12 changed files with 1549 additions and 1106 deletions

View File

@@ -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>

View File

@@ -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;
}
}

View File

@@ -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;
}
}
}

View File

@@ -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)
{

View File

@@ -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);
}
}
}