张泳健 8 лет назад
Родитель
Сommit
b43957652d

+ 56 - 12
GWSocketClient/AnaProtocol.Designer.cs Просмотреть файл

@@ -28,25 +28,65 @@
28 28
         /// </summary>
29 29
         private void InitializeComponent()
30 30
         {
31
-            this.labelSourceData = new System.Windows.Forms.Label();
31
+            this.rtbCmd = new System.Windows.Forms.RichTextBox();
32
+            this.menuStrip1 = new System.Windows.Forms.MenuStrip();
33
+            this.没有ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
34
+            this.buttonCancle = new System.Windows.Forms.Button();
35
+            this.menuStrip1.SuspendLayout();
32 36
             this.SuspendLayout();
33 37
             // 
34
-            // labelSourceData
38
+            // rtbCmd
35 39
             // 
36
-            this.labelSourceData.AutoSize = true;
37
-            this.labelSourceData.Location = new System.Drawing.Point(357, 13);
38
-            this.labelSourceData.Name = "labelSourceData";
39
-            this.labelSourceData.Size = new System.Drawing.Size(43, 17);
40
-            this.labelSourceData.TabIndex = 0;
41
-            this.labelSourceData.Text = "label1";
40
+            this.rtbCmd.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
41
+            | System.Windows.Forms.AnchorStyles.Right)));
42
+            this.rtbCmd.Location = new System.Drawing.Point(12, 28);
43
+            this.rtbCmd.Name = "rtbCmd";
44
+            this.rtbCmd.ReadOnly = true;
45
+            this.rtbCmd.Size = new System.Drawing.Size(997, 96);
46
+            this.rtbCmd.TabIndex = 1;
47
+            this.rtbCmd.Text = "";
48
+            // 
49
+            // menuStrip1
50
+            // 
51
+            this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
52
+            this.没有ToolStripMenuItem});
53
+            this.menuStrip1.Location = new System.Drawing.Point(0, 0);
54
+            this.menuStrip1.Name = "menuStrip1";
55
+            this.menuStrip1.Size = new System.Drawing.Size(1021, 25);
56
+            this.menuStrip1.TabIndex = 2;
57
+            this.menuStrip1.Text = "menuStrip1";
58
+            // 
59
+            // 没有ToolStripMenuItem
60
+            // 
61
+            this.没有ToolStripMenuItem.Name = "没有ToolStripMenuItem";
62
+            this.没有ToolStripMenuItem.Size = new System.Drawing.Size(44, 21);
63
+            this.没有ToolStripMenuItem.Text = "没有";
64
+            // 
65
+            // buttonCancle
66
+            // 
67
+            this.buttonCancle.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
68
+            | System.Windows.Forms.AnchorStyles.Left) 
69
+            | System.Windows.Forms.AnchorStyles.Right)));
70
+            this.buttonCancle.DialogResult = System.Windows.Forms.DialogResult.Cancel;
71
+            this.buttonCancle.Location = new System.Drawing.Point(934, 448);
72
+            this.buttonCancle.Name = "buttonCancle";
73
+            this.buttonCancle.Size = new System.Drawing.Size(75, 23);
74
+            this.buttonCancle.TabIndex = 3;
75
+            this.buttonCancle.Text = "取消";
76
+            this.buttonCancle.UseVisualStyleBackColor = true;
77
+            this.buttonCancle.Click += new System.EventHandler(this.buttonCancle_Click);
42 78
             // 
43 79
             // AnaProtocol
44 80
             // 
45 81
             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
46 82
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
47
-            this.ClientSize = new System.Drawing.Size(1021, 841);
48
-            this.Controls.Add(this.labelSourceData);
83
+            this.CancelButton = this.buttonCancle;
84
+            this.ClientSize = new System.Drawing.Size(1021, 497);
85
+            this.Controls.Add(this.buttonCancle);
86
+            this.Controls.Add(this.rtbCmd);
87
+            this.Controls.Add(this.menuStrip1);
49 88
             this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
89
+            this.MainMenuStrip = this.menuStrip1;
50 90
             this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
51 91
             this.Name = "AnaProtocol";
52 92
             this.ShowIcon = false;
@@ -54,13 +94,17 @@
54 94
             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
55 95
             this.Text = "分析";
56 96
             this.Load += new System.EventHandler(this.AnaProtocol_Load);
97
+            this.menuStrip1.ResumeLayout(false);
98
+            this.menuStrip1.PerformLayout();
57 99
             this.ResumeLayout(false);
58 100
             this.PerformLayout();
59 101
 
60 102
         }
61 103
 
62 104
         #endregion
63
-
64
-        private System.Windows.Forms.Label labelSourceData;
105
+        private System.Windows.Forms.RichTextBox rtbCmd;
106
+        private System.Windows.Forms.MenuStrip menuStrip1;
107
+        private System.Windows.Forms.ToolStripMenuItem 没有ToolStripMenuItem;
108
+        private System.Windows.Forms.Button buttonCancle;
65 109
     }
66 110
 }

+ 6 - 1
GWSocketClient/AnaProtocol.cs Просмотреть файл

@@ -24,9 +24,14 @@ namespace GWSocketClient
24 24
 
25 25
         private void AnaProtocol_Load(object sender, EventArgs e)
26 26
         {
27
-            labelSourceData.Text = this.protocolData;
27
+            rtbCmd.Text = this.protocolData;
28 28
         }
29 29
 
30 30
         #endregion
31
+
32
+        private void buttonCancle_Click(object sender, EventArgs e)
33
+        {
34
+
35
+        }
31 36
     }
32 37
 }

+ 3 - 0
GWSocketClient/AnaProtocol.resx Просмотреть файл

@@ -117,4 +117,7 @@
117 117
   <resheader name="writer">
118 118
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119 119
   </resheader>
120
+  <metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
121
+    <value>17, 17</value>
122
+  </metadata>
120 123
 </root>

+ 15 - 15
GWSocketClient/Form1.Designer.cs Просмотреть файл

@@ -59,6 +59,7 @@
59 59
             this.ToolStripMenuItemHbStart = new System.Windows.Forms.ToolStripMenuItem();
60 60
             this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
61 61
             this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
62
+            this.toolStripMenuItemHBtime = new System.Windows.Forms.ToolStripMenuItem();
62 63
             this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
63 64
             this.ToolStripMenuItemLogHb = new System.Windows.Forms.ToolStripMenuItem();
64 65
             this.statusStrip1 = new System.Windows.Forms.StatusStrip();
@@ -66,14 +67,13 @@
66 67
             this.tsslEquipmentAddress = new System.Windows.Forms.ToolStripStatusLabel();
67 68
             this.toolStripStatusLabel2 = new System.Windows.Forms.ToolStripStatusLabel();
68 69
             this.tsslCCIDLEN = new System.Windows.Forms.ToolStripStatusLabel();
70
+            this.toolStripStatusLabelHbShow = new System.Windows.Forms.ToolStripStatusLabel();
69 71
             this.groupBox2 = new System.Windows.Forms.GroupBox();
70 72
             this.listBoxShow = new System.Windows.Forms.ListBox();
71 73
             this.cmslistboxRightMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
72 74
             this.rightMenuCopyCmd = new System.Windows.Forms.ToolStripMenuItem();
73 75
             this.rightMenuClearInfo = new System.Windows.Forms.ToolStripMenuItem();
74 76
             this.timerHeartBeat = new System.Windows.Forms.Timer(this.components);
75
-            this.toolStripMenuItemHBtime = new System.Windows.Forms.ToolStripMenuItem();
76
-            this.toolStripStatusLabelHbShow = new System.Windows.Forms.ToolStripStatusLabel();
77 77
             this.groupBox1.SuspendLayout();
78 78
             this.menuStrip1.SuspendLayout();
79 79
             this.statusStrip1.SuspendLayout();
@@ -388,6 +388,13 @@
388 388
             this.toolStripSeparator3.Name = "toolStripSeparator3";
389 389
             this.toolStripSeparator3.Size = new System.Drawing.Size(193, 6);
390 390
             // 
391
+            // toolStripMenuItemHBtime
392
+            // 
393
+            this.toolStripMenuItemHBtime.Name = "toolStripMenuItemHBtime";
394
+            this.toolStripMenuItemHBtime.Size = new System.Drawing.Size(196, 22);
395
+            this.toolStripMenuItemHBtime.Text = "设置心跳间隔";
396
+            this.toolStripMenuItemHBtime.Click += new System.EventHandler(this.toolStripMenuItemHBtime_Click);
397
+            // 
391 398
             // toolStripSeparator2
392 399
             // 
393 400
             this.toolStripSeparator2.Name = "toolStripSeparator2";
@@ -439,6 +446,12 @@
439 446
             this.tsslCCIDLEN.Size = new System.Drawing.Size(32, 17);
440 447
             this.tsslCCIDLEN.Text = "20.0";
441 448
             // 
449
+            // toolStripStatusLabelHbShow
450
+            // 
451
+            this.toolStripStatusLabelHbShow.Name = "toolStripStatusLabelHbShow";
452
+            this.toolStripStatusLabelHbShow.Size = new System.Drawing.Size(82, 17);
453
+            this.toolStripStatusLabelHbShow.Text = "心跳时间: 5秒";
454
+            // 
442 455
             // groupBox2
443 456
             // 
444 457
             this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
@@ -500,19 +513,6 @@
500 513
             this.timerHeartBeat.Interval = 5000;
501 514
             this.timerHeartBeat.Tick += new System.EventHandler(this.timerHeartBeat_Tick);
502 515
             // 
503
-            // toolStripMenuItemHBtime
504
-            // 
505
-            this.toolStripMenuItemHBtime.Name = "toolStripMenuItemHBtime";
506
-            this.toolStripMenuItemHBtime.Size = new System.Drawing.Size(196, 22);
507
-            this.toolStripMenuItemHBtime.Text = "设置心跳间隔";
508
-            this.toolStripMenuItemHBtime.Click += new System.EventHandler(this.toolStripMenuItemHBtime_Click);
509
-            // 
510
-            // toolStripStatusLabelHbShow
511
-            // 
512
-            this.toolStripStatusLabelHbShow.Name = "toolStripStatusLabelHbShow";
513
-            this.toolStripStatusLabelHbShow.Size = new System.Drawing.Size(82, 17);
514
-            this.toolStripStatusLabelHbShow.Text = "心跳时间: 5秒";
515
-            // 
516 516
             // Form1
517 517
             // 
518 518
             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);

+ 1 - 0
GWSocketClient/Form1.cs Просмотреть файл

@@ -576,6 +576,7 @@ namespace GWSocketClient
576 576
                         new SolidBrush(e.ForeColor),
577 577
                         e.Bounds);
578 578
                 }
579
+               
579 580
                 e.DrawFocusRectangle();
580 581
             }
581 582
         }

Двоичные данные
GWSocketClient/bin/Debug/dbfile/ID_INFO.accdb Просмотреть файл


Двоичные данные
GWSocketClient/bin/Release/dbfile/ID_INFO.accdb Просмотреть файл