-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathForm1.Designer.cs
337 lines (330 loc) · 14.6 KB
/
Form1.Designer.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
namespace WindowsFormsApp1
{
partial class Form1
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.textBox1 = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.button2 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.serialPort1 = new System.IO.Ports.SerialPort(this.components);
this.textBox2 = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.button4 = new System.Windows.Forms.Button();
this.label5 = new System.Windows.Forms.Label();
this.comboBox3 = new System.Windows.Forms.ComboBox();
this.label6 = new System.Windows.Forms.Label();
this.comboBox4 = new System.Windows.Forms.ComboBox();
this.radioSendHex = new System.Windows.Forms.CheckBox();
this.radioSendASCII = new System.Windows.Forms.CheckBox();
this.checkBox3 = new System.Windows.Forms.CheckBox();
this.checkBox4 = new System.Windows.Forms.CheckBox();
this.SuspendLayout();
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(21, 47);
this.textBox1.Multiline = true;
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(270, 148);
this.textBox1.TabIndex = 0;
//
// button1
//
this.button1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button1.Location = new System.Drawing.Point(376, 47);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(166, 37);
this.button1.TabIndex = 1;
this.button1.Text = "扫描串口";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// comboBox1
//
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Location = new System.Drawing.Point(421, 104);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(121, 20);
this.comboBox1.TabIndex = 2;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(374, 107);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(41, 12);
this.label1.TabIndex = 3;
this.label1.Text = "串口号";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(374, 152);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(41, 12);
this.label2.TabIndex = 5;
this.label2.Text = "波特率";
this.label2.Click += new System.EventHandler(this.label2_Click);
//
// comboBox2
//
this.comboBox2.AutoCompleteCustomSource.AddRange(new string[] {
"300",
"600",
"4800",
"9600",
"14400",
"115200"});
this.comboBox2.FormattingEnabled = true;
this.comboBox2.Items.AddRange(new object[] {
"300",
"600",
"4800",
"9600",
"14400",
"115200"});
this.comboBox2.Location = new System.Drawing.Point(421, 149);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(121, 20);
this.comboBox2.TabIndex = 4;
this.comboBox2.SelectedIndexChanged += new System.EventHandler(this.comboBox2_SelectedIndexChanged);
//
// button2
//
this.button2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button2.Location = new System.Drawing.Point(386, 267);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(166, 37);
this.button2.TabIndex = 6;
this.button2.Text = "打开串口";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button3
//
this.button3.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button3.Location = new System.Drawing.Point(386, 322);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(166, 37);
this.button3.TabIndex = 7;
this.button3.Text = "清空接收";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(21, 241);
this.textBox2.Multiline = true;
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(270, 118);
this.textBox2.TabIndex = 8;
this.textBox2.TextChanged += new System.EventHandler(this.textBox2_TextChanged);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(31, 29);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(53, 12);
this.label3.TabIndex = 9;
this.label3.Text = "接收数据";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(31, 215);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(53, 12);
this.label4.TabIndex = 10;
this.label4.Text = "发送数据";
this.label4.Click += new System.EventHandler(this.label4_Click);
//
// button4
//
this.button4.Location = new System.Drawing.Point(21, 365);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(105, 40);
this.button4.TabIndex = 11;
this.button4.Text = "发送";
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(374, 192);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(41, 12);
this.label5.TabIndex = 13;
this.label5.Text = "数据位";
this.label5.Click += new System.EventHandler(this.label5_Click);
//
// comboBox3
//
this.comboBox3.AutoCompleteCustomSource.AddRange(new string[] {
"5",
"6",
"7",
"8"});
this.comboBox3.FormattingEnabled = true;
this.comboBox3.Items.AddRange(new object[] {
"5",
"6",
"7",
"8"});
this.comboBox3.Location = new System.Drawing.Point(421, 189);
this.comboBox3.Name = "comboBox3";
this.comboBox3.Size = new System.Drawing.Size(121, 20);
this.comboBox3.TabIndex = 12;
this.comboBox3.SelectedIndexChanged += new System.EventHandler(this.comboBox3_SelectedIndexChanged);
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(374, 230);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(41, 12);
this.label6.TabIndex = 15;
this.label6.Text = "停止位";
//
// comboBox4
//
this.comboBox4.AutoCompleteCustomSource.AddRange(new string[] {
"0",
"1"});
this.comboBox4.FormattingEnabled = true;
this.comboBox4.Items.AddRange(new object[] {
"0",
"1"});
this.comboBox4.Location = new System.Drawing.Point(421, 227);
this.comboBox4.Name = "comboBox4";
this.comboBox4.Size = new System.Drawing.Size(121, 20);
this.comboBox4.TabIndex = 14;
this.comboBox4.SelectedIndexChanged += new System.EventHandler(this.comboBox4_SelectedIndexChanged);
//
// radioSendHex
//
this.radioSendHex.AutoSize = true;
this.radioSendHex.Location = new System.Drawing.Point(107, 215);
this.radioSendHex.Name = "radioSendHex";
this.radioSendHex.Size = new System.Drawing.Size(42, 16);
this.radioSendHex.TabIndex = 16;
this.radioSendHex.Text = "HEX";
this.radioSendHex.UseVisualStyleBackColor = true;
this.radioSendHex.CheckedChanged += new System.EventHandler(this.checkBox1hex_CheckedChanged);
//
// radioSendASCII
//
this.radioSendASCII.AutoSize = true;
this.radioSendASCII.Location = new System.Drawing.Point(165, 215);
this.radioSendASCII.Name = "radioSendASCII";
this.radioSendASCII.Size = new System.Drawing.Size(54, 16);
this.radioSendASCII.TabIndex = 17;
this.radioSendASCII.Text = "ASCII";
this.radioSendASCII.UseVisualStyleBackColor = true;
this.radioSendASCII.CheckedChanged += new System.EventHandler(this.checkBox2ascii_CheckedChanged);
//
// checkBox3
//
this.checkBox3.AutoSize = true;
this.checkBox3.Location = new System.Drawing.Point(165, 28);
this.checkBox3.Name = "checkBox3";
this.checkBox3.Size = new System.Drawing.Size(54, 16);
this.checkBox3.TabIndex = 19;
this.checkBox3.Text = "ASCII";
this.checkBox3.UseVisualStyleBackColor = true;
//
// checkBox4
//
this.checkBox4.AutoSize = true;
this.checkBox4.Location = new System.Drawing.Point(107, 28);
this.checkBox4.Name = "checkBox4";
this.checkBox4.Size = new System.Drawing.Size(42, 16);
this.checkBox4.TabIndex = 18;
this.checkBox4.Text = "HEX";
this.checkBox4.UseVisualStyleBackColor = true;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(585, 413);
this.Controls.Add(this.checkBox3);
this.Controls.Add(this.checkBox4);
this.Controls.Add(this.radioSendASCII);
this.Controls.Add(this.radioSendHex);
this.Controls.Add(this.label6);
this.Controls.Add(this.comboBox4);
this.Controls.Add(this.label5);
this.Controls.Add(this.comboBox3);
this.Controls.Add(this.button4);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.button3);
this.Controls.Add(this.button2);
this.Controls.Add(this.label2);
this.Controls.Add(this.comboBox2);
this.Controls.Add(this.label1);
this.Controls.Add(this.comboBox1);
this.Controls.Add(this.button1);
this.Controls.Add(this.textBox1);
this.Name = "Form1";
this.Text = " ";
this.Load += new System.EventHandler(this.Form1_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.ComboBox comboBox2;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Button button3;
private System.IO.Ports.SerialPort serialPort1;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.ComboBox comboBox3;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.ComboBox comboBox4;
private System.Windows.Forms.CheckBox radioSendHex;
private System.Windows.Forms.CheckBox radioSendASCII;
private System.Windows.Forms.CheckBox checkBox3;
private System.Windows.Forms.CheckBox checkBox4;
}
}