-
Notifications
You must be signed in to change notification settings - Fork 0
/
Form1.Designer.cs
259 lines (251 loc) · 12 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
namespace Winform_SerialPortTools
{
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.btn_Port = new System.Windows.Forms.Button();
this.cb_PortName = new System.Windows.Forms.ComboBox();
this.cb_BaudRate = new System.Windows.Forms.ComboBox();
this.grp_PortSet = new System.Windows.Forms.GroupBox();
this.pb_PortState = new System.Windows.Forms.PictureBox();
this.cb_StopBit = new System.Windows.Forms.ComboBox();
this.lab_StopBit = new System.Windows.Forms.Label();
this.cb_DataBit = new System.Windows.Forms.ComboBox();
this.lab_DataBit = new System.Windows.Forms.Label();
this.lab_ParityBit = new System.Windows.Forms.Label();
this.cb_ParityBit = new System.Windows.Forms.ComboBox();
this.lab_BaudRate = new System.Windows.Forms.Label();
this.lab_Port = new System.Windows.Forms.Label();
this.btn_CheckPort = new System.Windows.Forms.Button();
this.cb_Char = new System.Windows.Forms.CheckBox();
this.cb_Hex = new System.Windows.Forms.CheckBox();
this.grp_PortSet.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pb_PortState)).BeginInit();
this.SuspendLayout();
//
// btn_Port
//
this.btn_Port.Location = new System.Drawing.Point(80, 190);
this.btn_Port.Name = "btn_Port";
this.btn_Port.Size = new System.Drawing.Size(66, 33);
this.btn_Port.TabIndex = 0;
this.btn_Port.Text = "打开串口";
this.btn_Port.UseVisualStyleBackColor = true;
this.btn_Port.Click += new System.EventHandler(this.btn_Port_Click);
//
// cb_PortName
//
this.cb_PortName.DropDownWidth = 89;
this.cb_PortName.FormattingEnabled = true;
this.cb_PortName.Location = new System.Drawing.Point(55, 20);
this.cb_PortName.Name = "cb_PortName";
this.cb_PortName.Size = new System.Drawing.Size(91, 20);
this.cb_PortName.TabIndex = 1;
//
// cb_BaudRate
//
this.cb_BaudRate.FormattingEnabled = true;
this.cb_BaudRate.Location = new System.Drawing.Point(55, 46);
this.cb_BaudRate.Name = "cb_BaudRate";
this.cb_BaudRate.Size = new System.Drawing.Size(91, 20);
this.cb_BaudRate.TabIndex = 3;
//
// grp_PortSet
//
this.grp_PortSet.Controls.Add(this.cb_Hex);
this.grp_PortSet.Controls.Add(this.cb_Char);
this.grp_PortSet.Controls.Add(this.btn_CheckPort);
this.grp_PortSet.Controls.Add(this.pb_PortState);
this.grp_PortSet.Controls.Add(this.cb_StopBit);
this.grp_PortSet.Controls.Add(this.lab_StopBit);
this.grp_PortSet.Controls.Add(this.btn_Port);
this.grp_PortSet.Controls.Add(this.cb_DataBit);
this.grp_PortSet.Controls.Add(this.lab_DataBit);
this.grp_PortSet.Controls.Add(this.lab_ParityBit);
this.grp_PortSet.Controls.Add(this.cb_ParityBit);
this.grp_PortSet.Controls.Add(this.lab_BaudRate);
this.grp_PortSet.Controls.Add(this.lab_Port);
this.grp_PortSet.Controls.Add(this.cb_PortName);
this.grp_PortSet.Controls.Add(this.cb_BaudRate);
this.grp_PortSet.Location = new System.Drawing.Point(5, 5);
this.grp_PortSet.Name = "grp_PortSet";
this.grp_PortSet.Size = new System.Drawing.Size(158, 229);
this.grp_PortSet.TabIndex = 4;
this.grp_PortSet.TabStop = false;
//
// pb_PortState
//
this.pb_PortState.BackColor = System.Drawing.SystemColors.Control;
this.pb_PortState.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.pb_PortState.ErrorImage = global::Winform_SerialPortTools.Properties.Resources.BlackLED_Close_PortState;
this.pb_PortState.Image = global::Winform_SerialPortTools.Properties.Resources.BlackLED_Close_PortState;
this.pb_PortState.InitialImage = global::Winform_SerialPortTools.Properties.Resources.BlackLED_Close_PortState;
this.pb_PortState.Location = new System.Drawing.Point(8, 148);
this.pb_PortState.Name = "pb_PortState";
this.pb_PortState.Size = new System.Drawing.Size(39, 39);
this.pb_PortState.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.pb_PortState.TabIndex = 5;
this.pb_PortState.TabStop = false;
//
// cb_StopBit
//
this.cb_StopBit.FormattingEnabled = true;
this.cb_StopBit.Location = new System.Drawing.Point(55, 124);
this.cb_StopBit.Name = "cb_StopBit";
this.cb_StopBit.Size = new System.Drawing.Size(91, 20);
this.cb_StopBit.TabIndex = 11;
this.cb_StopBit.SelectedIndexChanged += new System.EventHandler(this.cb_StopBit_SelectedIndexChanged);
//
// lab_StopBit
//
this.lab_StopBit.AutoSize = true;
this.lab_StopBit.Location = new System.Drawing.Point(6, 127);
this.lab_StopBit.Name = "lab_StopBit";
this.lab_StopBit.Size = new System.Drawing.Size(41, 12);
this.lab_StopBit.TabIndex = 10;
this.lab_StopBit.Text = "停止位";
this.lab_StopBit.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// cb_DataBit
//
this.cb_DataBit.FormattingEnabled = true;
this.cb_DataBit.Location = new System.Drawing.Point(55, 98);
this.cb_DataBit.Name = "cb_DataBit";
this.cb_DataBit.Size = new System.Drawing.Size(91, 20);
this.cb_DataBit.TabIndex = 9;
//
// lab_DataBit
//
this.lab_DataBit.AutoSize = true;
this.lab_DataBit.Location = new System.Drawing.Point(6, 101);
this.lab_DataBit.Name = "lab_DataBit";
this.lab_DataBit.Size = new System.Drawing.Size(41, 12);
this.lab_DataBit.TabIndex = 8;
this.lab_DataBit.Text = "数据位";
this.lab_DataBit.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lab_ParityBit
//
this.lab_ParityBit.AutoSize = true;
this.lab_ParityBit.Location = new System.Drawing.Point(6, 75);
this.lab_ParityBit.Name = "lab_ParityBit";
this.lab_ParityBit.Size = new System.Drawing.Size(41, 12);
this.lab_ParityBit.TabIndex = 7;
this.lab_ParityBit.Text = "校验位";
this.lab_ParityBit.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// cb_ParityBit
//
this.cb_ParityBit.FormattingEnabled = true;
this.cb_ParityBit.Location = new System.Drawing.Point(55, 72);
this.cb_ParityBit.Name = "cb_ParityBit";
this.cb_ParityBit.Size = new System.Drawing.Size(91, 20);
this.cb_ParityBit.TabIndex = 6;
//
// lab_BaudRate
//
this.lab_BaudRate.AutoSize = true;
this.lab_BaudRate.Location = new System.Drawing.Point(6, 49);
this.lab_BaudRate.Name = "lab_BaudRate";
this.lab_BaudRate.Size = new System.Drawing.Size(41, 12);
this.lab_BaudRate.TabIndex = 5;
this.lab_BaudRate.Text = "波特率";
this.lab_BaudRate.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lab_Port
//
this.lab_Port.AutoSize = true;
this.lab_Port.Location = new System.Drawing.Point(12, 23);
this.lab_Port.Name = "lab_Port";
this.lab_Port.Size = new System.Drawing.Size(29, 12);
this.lab_Port.TabIndex = 4;
this.lab_Port.Text = "串口";
this.lab_Port.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// btn_CheckPort
//
this.btn_CheckPort.Location = new System.Drawing.Point(8, 190);
this.btn_CheckPort.Name = "btn_CheckPort";
this.btn_CheckPort.Size = new System.Drawing.Size(66, 33);
this.btn_CheckPort.TabIndex = 13;
this.btn_CheckPort.Text = "串口检测";
this.btn_CheckPort.UseVisualStyleBackColor = true;
this.btn_CheckPort.Click += new System.EventHandler(this.btn_CheckPort_Click);
//
// cb_Char
//
this.cb_Char.AutoSize = true;
this.cb_Char.Location = new System.Drawing.Point(55, 150);
this.cb_Char.Name = "cb_Char";
this.cb_Char.Size = new System.Drawing.Size(78, 16);
this.cb_Char.TabIndex = 14;
this.cb_Char.Text = "Char 显示";
this.cb_Char.UseVisualStyleBackColor = true;
this.cb_Char.Click += new System.EventHandler(this.cb_Char_Click);
//
// cb_Hex
//
this.cb_Hex.AutoSize = true;
this.cb_Hex.Location = new System.Drawing.Point(55, 168);
this.cb_Hex.Name = "cb_Hex";
this.cb_Hex.Size = new System.Drawing.Size(72, 16);
this.cb_Hex.TabIndex = 15;
this.cb_Hex.Text = "Hex 显示";
this.cb_Hex.UseVisualStyleBackColor = true;
this.cb_Hex.Click += new System.EventHandler(this.cb_Hex_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(474, 357);
this.Controls.Add(this.grp_PortSet);
this.Name = "Form1";
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);
this.grp_PortSet.ResumeLayout(false);
this.grp_PortSet.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pb_PortState)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button btn_Port;
private System.Windows.Forms.GroupBox grp_PortSet;
private System.Windows.Forms.ComboBox cb_StopBit;
private System.Windows.Forms.Label lab_StopBit;
private System.Windows.Forms.ComboBox cb_DataBit;
private System.Windows.Forms.Label lab_DataBit;
private System.Windows.Forms.Label lab_ParityBit;
private System.Windows.Forms.ComboBox cb_ParityBit;
private System.Windows.Forms.Label lab_BaudRate;
private System.Windows.Forms.Label lab_Port;
private System.Windows.Forms.PictureBox pb_PortState;
public System.Windows.Forms.ComboBox cb_PortName;
private System.Windows.Forms.ComboBox cb_BaudRate;
private System.Windows.Forms.Button btn_CheckPort;
private System.Windows.Forms.CheckBox cb_Hex;
private System.Windows.Forms.CheckBox cb_Char;
}
}