Browse Source

update sommething

张泳健 8 years ago
parent
commit
b43957652d

+ 56 - 12
GWSocketClient/AnaProtocol.Designer.cs View File

28
         /// </summary>
28
         /// </summary>
29
         private void InitializeComponent()
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
             this.SuspendLayout();
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
             // AnaProtocol
79
             // AnaProtocol
44
             // 
80
             // 
45
             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
81
             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
46
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
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
             this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
88
             this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
89
+            this.MainMenuStrip = this.menuStrip1;
50
             this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
90
             this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
51
             this.Name = "AnaProtocol";
91
             this.Name = "AnaProtocol";
52
             this.ShowIcon = false;
92
             this.ShowIcon = false;
54
             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
94
             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
55
             this.Text = "分析";
95
             this.Text = "分析";
56
             this.Load += new System.EventHandler(this.AnaProtocol_Load);
96
             this.Load += new System.EventHandler(this.AnaProtocol_Load);
97
+            this.menuStrip1.ResumeLayout(false);
98
+            this.menuStrip1.PerformLayout();
57
             this.ResumeLayout(false);
99
             this.ResumeLayout(false);
58
             this.PerformLayout();
100
             this.PerformLayout();
59
 
101
 
60
         }
102
         }
61
 
103
 
62
         #endregion
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 View File

24
 
24
 
25
         private void AnaProtocol_Load(object sender, EventArgs e)
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
         #endregion
30
         #endregion
31
+
32
+        private void buttonCancle_Click(object sender, EventArgs e)
33
+        {
34
+
35
+        }
31
     }
36
     }
32
 }
37
 }

+ 3 - 0
GWSocketClient/AnaProtocol.resx View File

117
   <resheader name="writer">
117
   <resheader name="writer">
118
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
118
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119
   </resheader>
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
 </root>
123
 </root>

+ 15 - 15
GWSocketClient/Form1.Designer.cs View File

59
             this.ToolStripMenuItemHbStart = new System.Windows.Forms.ToolStripMenuItem();
59
             this.ToolStripMenuItemHbStart = new System.Windows.Forms.ToolStripMenuItem();
60
             this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
60
             this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
61
             this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
61
             this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
62
+            this.toolStripMenuItemHBtime = new System.Windows.Forms.ToolStripMenuItem();
62
             this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
63
             this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
63
             this.ToolStripMenuItemLogHb = new System.Windows.Forms.ToolStripMenuItem();
64
             this.ToolStripMenuItemLogHb = new System.Windows.Forms.ToolStripMenuItem();
64
             this.statusStrip1 = new System.Windows.Forms.StatusStrip();
65
             this.statusStrip1 = new System.Windows.Forms.StatusStrip();
66
             this.tsslEquipmentAddress = new System.Windows.Forms.ToolStripStatusLabel();
67
             this.tsslEquipmentAddress = new System.Windows.Forms.ToolStripStatusLabel();
67
             this.toolStripStatusLabel2 = new System.Windows.Forms.ToolStripStatusLabel();
68
             this.toolStripStatusLabel2 = new System.Windows.Forms.ToolStripStatusLabel();
68
             this.tsslCCIDLEN = new System.Windows.Forms.ToolStripStatusLabel();
69
             this.tsslCCIDLEN = new System.Windows.Forms.ToolStripStatusLabel();
70
+            this.toolStripStatusLabelHbShow = new System.Windows.Forms.ToolStripStatusLabel();
69
             this.groupBox2 = new System.Windows.Forms.GroupBox();
71
             this.groupBox2 = new System.Windows.Forms.GroupBox();
70
             this.listBoxShow = new System.Windows.Forms.ListBox();
72
             this.listBoxShow = new System.Windows.Forms.ListBox();
71
             this.cmslistboxRightMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
73
             this.cmslistboxRightMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
72
             this.rightMenuCopyCmd = new System.Windows.Forms.ToolStripMenuItem();
74
             this.rightMenuCopyCmd = new System.Windows.Forms.ToolStripMenuItem();
73
             this.rightMenuClearInfo = new System.Windows.Forms.ToolStripMenuItem();
75
             this.rightMenuClearInfo = new System.Windows.Forms.ToolStripMenuItem();
74
             this.timerHeartBeat = new System.Windows.Forms.Timer(this.components);
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
             this.groupBox1.SuspendLayout();
77
             this.groupBox1.SuspendLayout();
78
             this.menuStrip1.SuspendLayout();
78
             this.menuStrip1.SuspendLayout();
79
             this.statusStrip1.SuspendLayout();
79
             this.statusStrip1.SuspendLayout();
388
             this.toolStripSeparator3.Name = "toolStripSeparator3";
388
             this.toolStripSeparator3.Name = "toolStripSeparator3";
389
             this.toolStripSeparator3.Size = new System.Drawing.Size(193, 6);
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
             // toolStripSeparator2
398
             // toolStripSeparator2
392
             // 
399
             // 
393
             this.toolStripSeparator2.Name = "toolStripSeparator2";
400
             this.toolStripSeparator2.Name = "toolStripSeparator2";
439
             this.tsslCCIDLEN.Size = new System.Drawing.Size(32, 17);
446
             this.tsslCCIDLEN.Size = new System.Drawing.Size(32, 17);
440
             this.tsslCCIDLEN.Text = "20.0";
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
             // groupBox2
455
             // groupBox2
443
             // 
456
             // 
444
             this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
457
             this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
500
             this.timerHeartBeat.Interval = 5000;
513
             this.timerHeartBeat.Interval = 5000;
501
             this.timerHeartBeat.Tick += new System.EventHandler(this.timerHeartBeat_Tick);
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
             // Form1
516
             // Form1
517
             // 
517
             // 
518
             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
518
             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);

+ 1 - 0
GWSocketClient/Form1.cs View File

576
                         new SolidBrush(e.ForeColor),
576
                         new SolidBrush(e.ForeColor),
577
                         e.Bounds);
577
                         e.Bounds);
578
                 }
578
                 }
579
+               
579
                 e.DrawFocusRectangle();
580
                 e.DrawFocusRectangle();
580
             }
581
             }
581
         }
582
         }

BIN
GWSocketClient/bin/Debug/dbfile/ID_INFO.accdb View File


BIN
GWSocketClient/bin/Release/dbfile/ID_INFO.accdb View File