|
@@ -30,6 +30,14 @@
|
30
|
30
|
{
|
31
|
31
|
this.components = new System.ComponentModel.Container();
|
32
|
32
|
this.LBLogShow = new System.Windows.Forms.ListBox();
|
|
33
|
+ this.ListBoxLogContextMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
|
|
34
|
+ this.LB_Context_CpCmd = new System.Windows.Forms.ToolStripMenuItem();
|
|
35
|
+ this.LB_Context_CpLine = new System.Windows.Forms.ToolStripMenuItem();
|
|
36
|
+ this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
|
|
37
|
+ this.LB_Context_GJson = new System.Windows.Forms.ToolStripMenuItem();
|
|
38
|
+ this.LB_Context_AnaCmd = new System.Windows.Forms.ToolStripMenuItem();
|
|
39
|
+ this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
|
|
40
|
+ this.LB_Context_ClearAll = new System.Windows.Forms.ToolStripMenuItem();
|
33
|
41
|
this.TbHost = new System.Windows.Forms.TextBox();
|
34
|
42
|
this.TbPort = new System.Windows.Forms.TextBox();
|
35
|
43
|
this.BtnConnection = new System.Windows.Forms.Button();
|
|
@@ -51,6 +59,9 @@
|
51
|
59
|
this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
|
52
|
60
|
this.StatusItemHbTime = new System.Windows.Forms.ToolStripStatusLabel();
|
53
|
61
|
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
|
62
|
+ this.BtnClearAll = new System.Windows.Forms.Button();
|
|
63
|
+ this.TbSendData = new System.Windows.Forms.TextBox();
|
|
64
|
+ this.label5 = new System.Windows.Forms.Label();
|
54
|
65
|
this.BtnTest = new System.Windows.Forms.Button();
|
55
|
66
|
this.BtnCmdManager = new System.Windows.Forms.Button();
|
56
|
67
|
this.label4 = new System.Windows.Forms.Label();
|
|
@@ -59,21 +70,10 @@
|
59
|
70
|
this.TbDeviceId = new System.Windows.Forms.TextBox();
|
60
|
71
|
this.label2 = new System.Windows.Forms.Label();
|
61
|
72
|
this.label1 = new System.Windows.Forms.Label();
|
62
|
|
- this.label5 = new System.Windows.Forms.Label();
|
63
|
|
- this.TbSendData = new System.Windows.Forms.TextBox();
|
64
|
|
- this.ListBoxLogContextMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
|
65
|
|
- this.LB_Context_CpCmd = new System.Windows.Forms.ToolStripMenuItem();
|
66
|
|
- this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
|
67
|
|
- this.LB_Context_GJson = new System.Windows.Forms.ToolStripMenuItem();
|
68
|
|
- this.LB_Context_AnaCmd = new System.Windows.Forms.ToolStripMenuItem();
|
69
|
|
- this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
|
70
|
|
- this.LB_Context_ClearAll = new System.Windows.Forms.ToolStripMenuItem();
|
71
|
|
- this.LB_Context_CpLine = new System.Windows.Forms.ToolStripMenuItem();
|
72
|
|
- this.BtnClearAll = new System.Windows.Forms.Button();
|
|
73
|
+ this.ListBoxLogContextMenu.SuspendLayout();
|
73
|
74
|
this.menuStrip1.SuspendLayout();
|
74
|
75
|
this.statusStrip1.SuspendLayout();
|
75
|
76
|
this.groupBox1.SuspendLayout();
|
76
|
|
- this.ListBoxLogContextMenu.SuspendLayout();
|
77
|
77
|
this.SuspendLayout();
|
78
|
78
|
//
|
79
|
79
|
// LBLogShow
|
|
@@ -94,6 +94,64 @@
|
94
|
94
|
this.LBLogShow.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.LBLogShow_DrawItem);
|
95
|
95
|
this.LBLogShow.DoubleClick += new System.EventHandler(this.LBLogShow_DoubleClick);
|
96
|
96
|
//
|
|
97
|
+ // ListBoxLogContextMenu
|
|
98
|
+ //
|
|
99
|
+ this.ListBoxLogContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
100
|
+ this.LB_Context_CpCmd,
|
|
101
|
+ this.LB_Context_CpLine,
|
|
102
|
+ this.toolStripSeparator3,
|
|
103
|
+ this.LB_Context_GJson,
|
|
104
|
+ this.LB_Context_AnaCmd,
|
|
105
|
+ this.toolStripSeparator4,
|
|
106
|
+ this.LB_Context_ClearAll});
|
|
107
|
+ this.ListBoxLogContextMenu.Name = "ListBoxLogContextMenu";
|
|
108
|
+ this.ListBoxLogContextMenu.Size = new System.Drawing.Size(170, 126);
|
|
109
|
+ //
|
|
110
|
+ // LB_Context_CpCmd
|
|
111
|
+ //
|
|
112
|
+ this.LB_Context_CpCmd.Name = "LB_Context_CpCmd";
|
|
113
|
+ this.LB_Context_CpCmd.Size = new System.Drawing.Size(169, 22);
|
|
114
|
+ this.LB_Context_CpCmd.Text = "复制指令(&C)";
|
|
115
|
+ this.LB_Context_CpCmd.Click += new System.EventHandler(this.LB_Context_CpCmd_Click);
|
|
116
|
+ //
|
|
117
|
+ // LB_Context_CpLine
|
|
118
|
+ //
|
|
119
|
+ this.LB_Context_CpLine.Name = "LB_Context_CpLine";
|
|
120
|
+ this.LB_Context_CpLine.Size = new System.Drawing.Size(169, 22);
|
|
121
|
+ this.LB_Context_CpLine.Text = "复制整行(&R)";
|
|
122
|
+ this.LB_Context_CpLine.Click += new System.EventHandler(this.LB_Context_CpLine_Click);
|
|
123
|
+ //
|
|
124
|
+ // toolStripSeparator3
|
|
125
|
+ //
|
|
126
|
+ this.toolStripSeparator3.Name = "toolStripSeparator3";
|
|
127
|
+ this.toolStripSeparator3.Size = new System.Drawing.Size(166, 6);
|
|
128
|
+ //
|
|
129
|
+ // LB_Context_GJson
|
|
130
|
+ //
|
|
131
|
+ this.LB_Context_GJson.Name = "LB_Context_GJson";
|
|
132
|
+ this.LB_Context_GJson.Size = new System.Drawing.Size(169, 22);
|
|
133
|
+ this.LB_Context_GJson.Text = "指令生成JSON(&J)";
|
|
134
|
+ this.LB_Context_GJson.Click += new System.EventHandler(this.LB_Context_GJson_Click);
|
|
135
|
+ //
|
|
136
|
+ // LB_Context_AnaCmd
|
|
137
|
+ //
|
|
138
|
+ this.LB_Context_AnaCmd.Name = "LB_Context_AnaCmd";
|
|
139
|
+ this.LB_Context_AnaCmd.Size = new System.Drawing.Size(169, 22);
|
|
140
|
+ this.LB_Context_AnaCmd.Text = "分析指令(&A)";
|
|
141
|
+ this.LB_Context_AnaCmd.Click += new System.EventHandler(this.LB_Context_AnaCmd_Click);
|
|
142
|
+ //
|
|
143
|
+ // toolStripSeparator4
|
|
144
|
+ //
|
|
145
|
+ this.toolStripSeparator4.Name = "toolStripSeparator4";
|
|
146
|
+ this.toolStripSeparator4.Size = new System.Drawing.Size(166, 6);
|
|
147
|
+ //
|
|
148
|
+ // LB_Context_ClearAll
|
|
149
|
+ //
|
|
150
|
+ this.LB_Context_ClearAll.Name = "LB_Context_ClearAll";
|
|
151
|
+ this.LB_Context_ClearAll.Size = new System.Drawing.Size(169, 22);
|
|
152
|
+ this.LB_Context_ClearAll.Text = "清空信息(&L)";
|
|
153
|
+ this.LB_Context_ClearAll.Click += new System.EventHandler(this.LB_Context_ClearAll_Click);
|
|
154
|
+ //
|
97
|
155
|
// TbHost
|
98
|
156
|
//
|
99
|
157
|
this.TbHost.Location = new System.Drawing.Point(47, 15);
|
|
@@ -214,31 +272,35 @@
|
214
|
272
|
// RT_HI_Host
|
215
|
273
|
//
|
216
|
274
|
this.RT_HI_Host.Name = "RT_HI_Host";
|
217
|
|
- this.RT_HI_Host.Size = new System.Drawing.Size(124, 22);
|
|
275
|
+ this.RT_HI_Host.Size = new System.Drawing.Size(152, 22);
|
218
|
276
|
this.RT_HI_Host.Text = "Host";
|
|
277
|
+ this.RT_HI_Host.Click += new System.EventHandler(this.RT_HI_Host_Click);
|
219
|
278
|
//
|
220
|
279
|
// RT_HI_DeviceId
|
221
|
280
|
//
|
222
|
281
|
this.RT_HI_DeviceId.Name = "RT_HI_DeviceId";
|
223
|
|
- this.RT_HI_DeviceId.Size = new System.Drawing.Size(124, 22);
|
|
282
|
+ this.RT_HI_DeviceId.Size = new System.Drawing.Size(152, 22);
|
224
|
283
|
this.RT_HI_DeviceId.Text = "地址";
|
|
284
|
+ this.RT_HI_DeviceId.Click += new System.EventHandler(this.RT_HI_DeviceId_Click);
|
225
|
285
|
//
|
226
|
286
|
// RT_HI_CCID
|
227
|
287
|
//
|
228
|
288
|
this.RT_HI_CCID.Name = "RT_HI_CCID";
|
229
|
|
- this.RT_HI_CCID.Size = new System.Drawing.Size(124, 22);
|
|
289
|
+ this.RT_HI_CCID.Size = new System.Drawing.Size(152, 22);
|
230
|
290
|
this.RT_HI_CCID.Text = "CCID";
|
|
291
|
+ this.RT_HI_CCID.Click += new System.EventHandler(this.RT_HI_CCID_Click);
|
231
|
292
|
//
|
232
|
293
|
// toolStripSeparator2
|
233
|
294
|
//
|
234
|
295
|
this.toolStripSeparator2.Name = "toolStripSeparator2";
|
235
|
|
- this.toolStripSeparator2.Size = new System.Drawing.Size(121, 6);
|
|
296
|
+ this.toolStripSeparator2.Size = new System.Drawing.Size(149, 6);
|
236
|
297
|
//
|
237
|
298
|
// RT_HI_SendData
|
238
|
299
|
//
|
239
|
300
|
this.RT_HI_SendData.Name = "RT_HI_SendData";
|
240
|
|
- this.RT_HI_SendData.Size = new System.Drawing.Size(124, 22);
|
|
301
|
+ this.RT_HI_SendData.Size = new System.Drawing.Size(152, 22);
|
241
|
302
|
this.RT_HI_SendData.Text = "发送数据";
|
|
303
|
+ this.RT_HI_SendData.Click += new System.EventHandler(this.RT_HI_SendData_Click);
|
242
|
304
|
//
|
243
|
305
|
// statusStrip1
|
244
|
306
|
//
|
|
@@ -291,6 +353,38 @@
|
291
|
353
|
this.groupBox1.TabStop = false;
|
292
|
354
|
this.groupBox1.Text = " ";
|
293
|
355
|
//
|
|
356
|
+ // BtnClearAll
|
|
357
|
+ //
|
|
358
|
+ this.BtnClearAll.Location = new System.Drawing.Point(564, 45);
|
|
359
|
+ this.BtnClearAll.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
|
360
|
+ this.BtnClearAll.Name = "BtnClearAll";
|
|
361
|
+ this.BtnClearAll.Size = new System.Drawing.Size(87, 31);
|
|
362
|
+ this.BtnClearAll.TabIndex = 11;
|
|
363
|
+ this.BtnClearAll.Text = "清空信息";
|
|
364
|
+ this.BtnClearAll.UseVisualStyleBackColor = true;
|
|
365
|
+ this.BtnClearAll.Click += new System.EventHandler(this.BtnClearAll_Click);
|
|
366
|
+ //
|
|
367
|
+ // TbSendData
|
|
368
|
+ //
|
|
369
|
+ this.TbSendData.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
|
370
|
+ | System.Windows.Forms.AnchorStyles.Right)));
|
|
371
|
+ this.TbSendData.Location = new System.Drawing.Point(381, 83);
|
|
372
|
+ this.TbSendData.Name = "TbSendData";
|
|
373
|
+ this.TbSendData.Size = new System.Drawing.Size(574, 22);
|
|
374
|
+ this.TbSendData.TabIndex = 10;
|
|
375
|
+ this.TbSendData.Text = "7e7e7e000000000001b00056020004071008011709221059290200000217092210592900000003170" +
|
|
376
|
+ "92210592902000004170922105929020000051709221059290001160617092210592900012f07170" +
|
|
377
|
+ "92210592902000008170922105929020000cd";
|
|
378
|
+ //
|
|
379
|
+ // label5
|
|
380
|
+ //
|
|
381
|
+ this.label5.AutoSize = true;
|
|
382
|
+ this.label5.Location = new System.Drawing.Point(319, 86);
|
|
383
|
+ this.label5.Name = "label5";
|
|
384
|
+ this.label5.Size = new System.Drawing.Size(56, 17);
|
|
385
|
+ this.label5.TabIndex = 9;
|
|
386
|
+ this.label5.Text = "发送数据";
|
|
387
|
+ //
|
294
|
388
|
// BtnTest
|
295
|
389
|
//
|
296
|
390
|
this.BtnTest.Location = new System.Drawing.Point(471, 45);
|
|
@@ -368,96 +462,6 @@
|
368
|
462
|
this.label1.TabIndex = 2;
|
369
|
463
|
this.label1.Text = "Host";
|
370
|
464
|
//
|
371
|
|
- // label5
|
372
|
|
- //
|
373
|
|
- this.label5.AutoSize = true;
|
374
|
|
- this.label5.Location = new System.Drawing.Point(319, 86);
|
375
|
|
- this.label5.Name = "label5";
|
376
|
|
- this.label5.Size = new System.Drawing.Size(56, 17);
|
377
|
|
- this.label5.TabIndex = 9;
|
378
|
|
- this.label5.Text = "发送数据";
|
379
|
|
- //
|
380
|
|
- // TbSendData
|
381
|
|
- //
|
382
|
|
- this.TbSendData.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
383
|
|
- | System.Windows.Forms.AnchorStyles.Right)));
|
384
|
|
- this.TbSendData.Location = new System.Drawing.Point(381, 83);
|
385
|
|
- this.TbSendData.Name = "TbSendData";
|
386
|
|
- this.TbSendData.Size = new System.Drawing.Size(574, 22);
|
387
|
|
- this.TbSendData.TabIndex = 10;
|
388
|
|
- this.TbSendData.Text = "7e7e7e000000000001b00056020004071008011709221059290200000217092210592900000003170" +
|
389
|
|
- "92210592902000004170922105929020000051709221059290001160617092210592900012f07170" +
|
390
|
|
- "92210592902000008170922105929020000cd";
|
391
|
|
- //
|
392
|
|
- // ListBoxLogContextMenu
|
393
|
|
- //
|
394
|
|
- this.ListBoxLogContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
395
|
|
- this.LB_Context_CpCmd,
|
396
|
|
- this.LB_Context_CpLine,
|
397
|
|
- this.toolStripSeparator3,
|
398
|
|
- this.LB_Context_GJson,
|
399
|
|
- this.LB_Context_AnaCmd,
|
400
|
|
- this.toolStripSeparator4,
|
401
|
|
- this.LB_Context_ClearAll});
|
402
|
|
- this.ListBoxLogContextMenu.Name = "ListBoxLogContextMenu";
|
403
|
|
- this.ListBoxLogContextMenu.Size = new System.Drawing.Size(170, 126);
|
404
|
|
- //
|
405
|
|
- // LB_Context_CpCmd
|
406
|
|
- //
|
407
|
|
- this.LB_Context_CpCmd.Name = "LB_Context_CpCmd";
|
408
|
|
- this.LB_Context_CpCmd.Size = new System.Drawing.Size(169, 22);
|
409
|
|
- this.LB_Context_CpCmd.Text = "复制指令(&C)";
|
410
|
|
- this.LB_Context_CpCmd.Click += new System.EventHandler(this.LB_Context_CpCmd_Click);
|
411
|
|
- //
|
412
|
|
- // toolStripSeparator3
|
413
|
|
- //
|
414
|
|
- this.toolStripSeparator3.Name = "toolStripSeparator3";
|
415
|
|
- this.toolStripSeparator3.Size = new System.Drawing.Size(166, 6);
|
416
|
|
- //
|
417
|
|
- // LB_Context_GJson
|
418
|
|
- //
|
419
|
|
- this.LB_Context_GJson.Name = "LB_Context_GJson";
|
420
|
|
- this.LB_Context_GJson.Size = new System.Drawing.Size(169, 22);
|
421
|
|
- this.LB_Context_GJson.Text = "指令生成JSON(&J)";
|
422
|
|
- this.LB_Context_GJson.Click += new System.EventHandler(this.LB_Context_GJson_Click);
|
423
|
|
- //
|
424
|
|
- // LB_Context_AnaCmd
|
425
|
|
- //
|
426
|
|
- this.LB_Context_AnaCmd.Name = "LB_Context_AnaCmd";
|
427
|
|
- this.LB_Context_AnaCmd.Size = new System.Drawing.Size(169, 22);
|
428
|
|
- this.LB_Context_AnaCmd.Text = "分析指令(&A)";
|
429
|
|
- this.LB_Context_AnaCmd.Click += new System.EventHandler(this.LB_Context_AnaCmd_Click);
|
430
|
|
- //
|
431
|
|
- // toolStripSeparator4
|
432
|
|
- //
|
433
|
|
- this.toolStripSeparator4.Name = "toolStripSeparator4";
|
434
|
|
- this.toolStripSeparator4.Size = new System.Drawing.Size(166, 6);
|
435
|
|
- //
|
436
|
|
- // LB_Context_ClearAll
|
437
|
|
- //
|
438
|
|
- this.LB_Context_ClearAll.Name = "LB_Context_ClearAll";
|
439
|
|
- this.LB_Context_ClearAll.Size = new System.Drawing.Size(169, 22);
|
440
|
|
- this.LB_Context_ClearAll.Text = "清空信息(&L)";
|
441
|
|
- this.LB_Context_ClearAll.Click += new System.EventHandler(this.LB_Context_ClearAll_Click);
|
442
|
|
- //
|
443
|
|
- // LB_Context_CpLine
|
444
|
|
- //
|
445
|
|
- this.LB_Context_CpLine.Name = "LB_Context_CpLine";
|
446
|
|
- this.LB_Context_CpLine.Size = new System.Drawing.Size(169, 22);
|
447
|
|
- this.LB_Context_CpLine.Text = "复制整行(&R)";
|
448
|
|
- this.LB_Context_CpLine.Click += new System.EventHandler(this.LB_Context_CpLine_Click);
|
449
|
|
- //
|
450
|
|
- // BtnClearAll
|
451
|
|
- //
|
452
|
|
- this.BtnClearAll.Location = new System.Drawing.Point(564, 45);
|
453
|
|
- this.BtnClearAll.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
454
|
|
- this.BtnClearAll.Name = "BtnClearAll";
|
455
|
|
- this.BtnClearAll.Size = new System.Drawing.Size(87, 31);
|
456
|
|
- this.BtnClearAll.TabIndex = 11;
|
457
|
|
- this.BtnClearAll.Text = "清空信息";
|
458
|
|
- this.BtnClearAll.UseVisualStyleBackColor = true;
|
459
|
|
- this.BtnClearAll.Click += new System.EventHandler(this.BtnClearAll_Click);
|
460
|
|
- //
|
461
|
465
|
// MainForm
|
462
|
466
|
//
|
463
|
467
|
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 16F);
|
|
@@ -475,13 +479,13 @@
|
475
|
479
|
this.Text = "模拟器";
|
476
|
480
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing);
|
477
|
481
|
this.Load += new System.EventHandler(this.MainForm_Load);
|
|
482
|
+ this.ListBoxLogContextMenu.ResumeLayout(false);
|
478
|
483
|
this.menuStrip1.ResumeLayout(false);
|
479
|
484
|
this.menuStrip1.PerformLayout();
|
480
|
485
|
this.statusStrip1.ResumeLayout(false);
|
481
|
486
|
this.statusStrip1.PerformLayout();
|
482
|
487
|
this.groupBox1.ResumeLayout(false);
|
483
|
488
|
this.groupBox1.PerformLayout();
|
484
|
|
- this.ListBoxLogContextMenu.ResumeLayout(false);
|
485
|
489
|
this.ResumeLayout(false);
|
486
|
490
|
this.PerformLayout();
|
487
|
491
|
|