Rev 2235 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2235 | Rev 2261 | ||
---|---|---|---|
Line 40... | Line 40... | ||
40 | this.labelPortName = new System.Windows.Forms.Label(); |
40 | this.labelPortName = new System.Windows.Forms.Label(); |
41 | this.labelBaudRate = new System.Windows.Forms.Label(); |
41 | this.labelBaudRate = new System.Windows.Forms.Label(); |
42 | this.labelDataBits = new System.Windows.Forms.Label(); |
42 | this.labelDataBits = new System.Windows.Forms.Label(); |
43 | this.labelStopBits = new System.Windows.Forms.Label(); |
43 | this.labelStopBits = new System.Windows.Forms.Label(); |
44 | this.labelParity = new System.Windows.Forms.Label(); |
44 | this.labelParity = new System.Windows.Forms.Label(); |
- | 45 | this.btnRefresh = new System.Windows.Forms.Button(); |
|
45 | this.SuspendLayout(); |
46 | this.SuspendLayout(); |
46 | // |
47 | // |
47 | // comboBoxPortName |
48 | // comboBoxPortName |
48 | // |
49 | // |
49 | this.comboBoxPortName.FormattingEnabled = true; |
50 | this.comboBoxPortName.FormattingEnabled = true; |
50 | this.comboBoxPortName.Location = new System.Drawing.Point(66, 88); |
51 | this.comboBoxPortName.Location = new System.Drawing.Point(73, 88); |
51 | this.comboBoxPortName.Name = "comboBoxPortName"; |
52 | this.comboBoxPortName.Name = "comboBoxPortName"; |
52 | this.comboBoxPortName.Size = new System.Drawing.Size(100, 21); |
53 | this.comboBoxPortName.Size = new System.Drawing.Size(100, 21); |
53 | this.comboBoxPortName.TabIndex = 0; |
54 | this.comboBoxPortName.TabIndex = 0; |
54 | // |
55 | // |
55 | // buttonOpen |
56 | // buttonOpen |
56 | // |
57 | // |
57 | this.buttonOpen.Location = new System.Drawing.Point(66, 5); |
58 | this.buttonOpen.Location = new System.Drawing.Point(73, 5); |
58 | this.buttonOpen.Name = "buttonOpen"; |
59 | this.buttonOpen.Name = "buttonOpen"; |
59 | this.buttonOpen.Size = new System.Drawing.Size(100, 23); |
60 | this.buttonOpen.Size = new System.Drawing.Size(100, 23); |
60 | this.buttonOpen.TabIndex = 1; |
61 | this.buttonOpen.TabIndex = 1; |
61 | this.buttonOpen.Text = "Open"; |
62 | this.buttonOpen.Text = "Open"; |
62 | this.buttonOpen.UseVisualStyleBackColor = true; |
63 | this.buttonOpen.UseVisualStyleBackColor = true; |
63 | this.buttonOpen.Click += new System.EventHandler(this.buttonOpen_Click); |
64 | this.buttonOpen.Click += new System.EventHandler(this.buttonOpen_Click); |
64 | // |
65 | // |
65 | // buttonClose |
66 | // buttonClose |
66 | // |
67 | // |
67 | this.buttonClose.Location = new System.Drawing.Point(66, 34); |
68 | this.buttonClose.Location = new System.Drawing.Point(73, 34); |
68 | this.buttonClose.Name = "buttonClose"; |
69 | this.buttonClose.Name = "buttonClose"; |
69 | this.buttonClose.Size = new System.Drawing.Size(100, 23); |
70 | this.buttonClose.Size = new System.Drawing.Size(100, 23); |
70 | this.buttonClose.TabIndex = 2; |
71 | this.buttonClose.TabIndex = 2; |
71 | this.buttonClose.Text = "Close"; |
72 | this.buttonClose.Text = "Close"; |
72 | this.buttonClose.UseVisualStyleBackColor = true; |
73 | this.buttonClose.UseVisualStyleBackColor = true; |
73 | this.buttonClose.Click += new System.EventHandler(this.buttonClose_Click); |
74 | this.buttonClose.Click += new System.EventHandler(this.buttonClose_Click); |
74 | // |
75 | // |
75 | // textBoxBaudRate |
76 | // textBoxBaudRate |
76 | // |
77 | // |
77 | this.textBoxBaudRate.Location = new System.Drawing.Point(66, 115); |
78 | this.textBoxBaudRate.Location = new System.Drawing.Point(73, 115); |
78 | this.textBoxBaudRate.Name = "textBoxBaudRate"; |
79 | this.textBoxBaudRate.Name = "textBoxBaudRate"; |
79 | this.textBoxBaudRate.Size = new System.Drawing.Size(100, 20); |
80 | this.textBoxBaudRate.Size = new System.Drawing.Size(100, 20); |
80 | this.textBoxBaudRate.TabIndex = 3; |
81 | this.textBoxBaudRate.TabIndex = 3; |
81 | // |
82 | // |
82 | // textBoxStatus |
83 | // textBoxStatus |
83 | // |
84 | // |
84 | this.textBoxStatus.Location = new System.Drawing.Point(66, 63); |
85 | this.textBoxStatus.Location = new System.Drawing.Point(73, 63); |
85 | this.textBoxStatus.Name = "textBoxStatus"; |
86 | this.textBoxStatus.Name = "textBoxStatus"; |
86 | this.textBoxStatus.ReadOnly = true; |
87 | this.textBoxStatus.ReadOnly = true; |
87 | this.textBoxStatus.Size = new System.Drawing.Size(100, 20); |
88 | this.textBoxStatus.Size = new System.Drawing.Size(100, 20); |
88 | this.textBoxStatus.TabIndex = 4; |
89 | this.textBoxStatus.TabIndex = 4; |
89 | // |
90 | // |
90 | // textBoxDataBits |
91 | // textBoxDataBits |
91 | // |
92 | // |
92 | this.textBoxDataBits.Location = new System.Drawing.Point(66, 142); |
93 | this.textBoxDataBits.Location = new System.Drawing.Point(73, 142); |
93 | this.textBoxDataBits.Name = "textBoxDataBits"; |
94 | this.textBoxDataBits.Name = "textBoxDataBits"; |
94 | this.textBoxDataBits.Size = new System.Drawing.Size(100, 20); |
95 | this.textBoxDataBits.Size = new System.Drawing.Size(100, 20); |
95 | this.textBoxDataBits.TabIndex = 5; |
96 | this.textBoxDataBits.TabIndex = 5; |
96 | // |
97 | // |
97 | // comboBoxStopBits |
98 | // comboBoxStopBits |
98 | // |
99 | // |
99 | this.comboBoxStopBits.FormattingEnabled = true; |
100 | this.comboBoxStopBits.FormattingEnabled = true; |
100 | this.comboBoxStopBits.Location = new System.Drawing.Point(66, 169); |
101 | this.comboBoxStopBits.Location = new System.Drawing.Point(73, 169); |
101 | this.comboBoxStopBits.Name = "comboBoxStopBits"; |
102 | this.comboBoxStopBits.Name = "comboBoxStopBits"; |
102 | this.comboBoxStopBits.Size = new System.Drawing.Size(100, 21); |
103 | this.comboBoxStopBits.Size = new System.Drawing.Size(100, 21); |
103 | this.comboBoxStopBits.TabIndex = 6; |
104 | this.comboBoxStopBits.TabIndex = 6; |
104 | // |
105 | // |
105 | // comboBoxParity |
106 | // comboBoxParity |
106 | // |
107 | // |
107 | this.comboBoxParity.FormattingEnabled = true; |
108 | this.comboBoxParity.FormattingEnabled = true; |
108 | this.comboBoxParity.Location = new System.Drawing.Point(66, 197); |
109 | this.comboBoxParity.Location = new System.Drawing.Point(73, 197); |
109 | this.comboBoxParity.Name = "comboBoxParity"; |
110 | this.comboBoxParity.Name = "comboBoxParity"; |
110 | this.comboBoxParity.Size = new System.Drawing.Size(100, 21); |
111 | this.comboBoxParity.Size = new System.Drawing.Size(100, 21); |
111 | this.comboBoxParity.TabIndex = 7; |
112 | this.comboBoxParity.TabIndex = 7; |
112 | // |
113 | // |
113 | // labelStatus |
114 | // labelStatus |
114 | // |
115 | // |
115 | this.labelStatus.AutoSize = true; |
116 | this.labelStatus.AutoSize = true; |
116 | this.labelStatus.Location = new System.Drawing.Point(23, 66); |
117 | this.labelStatus.Location = new System.Drawing.Point(30, 66); |
117 | this.labelStatus.Name = "labelStatus"; |
118 | this.labelStatus.Name = "labelStatus"; |
118 | this.labelStatus.Size = new System.Drawing.Size(37, 13); |
119 | this.labelStatus.Size = new System.Drawing.Size(37, 13); |
119 | this.labelStatus.TabIndex = 8; |
120 | this.labelStatus.TabIndex = 8; |
120 | this.labelStatus.Text = "Status"; |
121 | this.labelStatus.Text = "Status"; |
121 | // |
122 | // |
122 | // labelPortName |
123 | // labelPortName |
123 | // |
124 | // |
124 | this.labelPortName.AutoSize = true; |
125 | this.labelPortName.AutoSize = true; |
125 | this.labelPortName.Location = new System.Drawing.Point(3, 91); |
126 | this.labelPortName.Location = new System.Drawing.Point(10, 91); |
126 | this.labelPortName.Name = "labelPortName"; |
127 | this.labelPortName.Name = "labelPortName"; |
127 | this.labelPortName.Size = new System.Drawing.Size(57, 13); |
128 | this.labelPortName.Size = new System.Drawing.Size(57, 13); |
128 | this.labelPortName.TabIndex = 9; |
129 | this.labelPortName.TabIndex = 9; |
129 | this.labelPortName.Text = "Port Name"; |
130 | this.labelPortName.Text = "Port Name"; |
130 | // |
131 | // |
131 | // labelBaudRate |
132 | // labelBaudRate |
132 | // |
133 | // |
133 | this.labelBaudRate.AutoSize = true; |
134 | this.labelBaudRate.AutoSize = true; |
134 | this.labelBaudRate.Location = new System.Drawing.Point(2, 118); |
135 | this.labelBaudRate.Location = new System.Drawing.Point(9, 118); |
135 | this.labelBaudRate.Name = "labelBaudRate"; |
136 | this.labelBaudRate.Name = "labelBaudRate"; |
136 | this.labelBaudRate.Size = new System.Drawing.Size(58, 13); |
137 | this.labelBaudRate.Size = new System.Drawing.Size(58, 13); |
137 | this.labelBaudRate.TabIndex = 10; |
138 | this.labelBaudRate.TabIndex = 10; |
138 | this.labelBaudRate.Text = "Baud Rate"; |
139 | this.labelBaudRate.Text = "Baud Rate"; |
139 | // |
140 | // |
140 | // labelDataBits |
141 | // labelDataBits |
141 | // |
142 | // |
142 | this.labelDataBits.AutoSize = true; |
143 | this.labelDataBits.AutoSize = true; |
143 | this.labelDataBits.Location = new System.Drawing.Point(10, 145); |
144 | this.labelDataBits.Location = new System.Drawing.Point(17, 145); |
144 | this.labelDataBits.Name = "labelDataBits"; |
145 | this.labelDataBits.Name = "labelDataBits"; |
145 | this.labelDataBits.Size = new System.Drawing.Size(50, 13); |
146 | this.labelDataBits.Size = new System.Drawing.Size(50, 13); |
146 | this.labelDataBits.TabIndex = 11; |
147 | this.labelDataBits.TabIndex = 11; |
147 | this.labelDataBits.Text = "Data Bits"; |
148 | this.labelDataBits.Text = "Data Bits"; |
148 | // |
149 | // |
149 | // labelStopBits |
150 | // labelStopBits |
150 | // |
151 | // |
151 | this.labelStopBits.AutoSize = true; |
152 | this.labelStopBits.AutoSize = true; |
152 | this.labelStopBits.Location = new System.Drawing.Point(11, 172); |
153 | this.labelStopBits.Location = new System.Drawing.Point(18, 172); |
153 | this.labelStopBits.Name = "labelStopBits"; |
154 | this.labelStopBits.Name = "labelStopBits"; |
154 | this.labelStopBits.Size = new System.Drawing.Size(49, 13); |
155 | this.labelStopBits.Size = new System.Drawing.Size(49, 13); |
155 | this.labelStopBits.TabIndex = 12; |
156 | this.labelStopBits.TabIndex = 12; |
156 | this.labelStopBits.Text = "Stop Bits"; |
157 | this.labelStopBits.Text = "Stop Bits"; |
157 | // |
158 | // |
158 | // labelParity |
159 | // labelParity |
159 | // |
160 | // |
160 | this.labelParity.AutoSize = true; |
161 | this.labelParity.AutoSize = true; |
161 | this.labelParity.Location = new System.Drawing.Point(23, 200); |
162 | this.labelParity.Location = new System.Drawing.Point(30, 200); |
162 | this.labelParity.Name = "labelParity"; |
163 | this.labelParity.Name = "labelParity"; |
163 | this.labelParity.Size = new System.Drawing.Size(33, 13); |
164 | this.labelParity.Size = new System.Drawing.Size(33, 13); |
164 | this.labelParity.TabIndex = 13; |
165 | this.labelParity.TabIndex = 13; |
165 | this.labelParity.Text = "Parity"; |
166 | this.labelParity.Text = "Parity"; |
166 | // |
167 | // |
- | 168 | // btnRefresh |
|
- | 169 | // |
|
- | 170 | this.btnRefresh.Location = new System.Drawing.Point(5, 9); |
|
- | 171 | this.btnRefresh.Name = "btnRefresh"; |
|
- | 172 | this.btnRefresh.Size = new System.Drawing.Size(60, 39); |
|
- | 173 | this.btnRefresh.TabIndex = 14; |
|
- | 174 | this.btnRefresh.Text = "refresh\r\nportlist"; |
|
- | 175 | this.btnRefresh.UseVisualStyleBackColor = true; |
|
- | 176 | this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click); |
|
- | 177 | // |
|
167 | // SimpleSerialPort |
178 | // SimpleSerialPort |
168 | // |
179 | // |
169 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
180 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
170 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
181 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
- | 182 | this.Controls.Add(this.btnRefresh); |
|
171 | this.Controls.Add(this.labelParity); |
183 | this.Controls.Add(this.labelParity); |
172 | this.Controls.Add(this.labelStopBits); |
184 | this.Controls.Add(this.labelStopBits); |
173 | this.Controls.Add(this.labelDataBits); |
185 | this.Controls.Add(this.labelDataBits); |
174 | this.Controls.Add(this.labelBaudRate); |
186 | this.Controls.Add(this.labelBaudRate); |
175 | this.Controls.Add(this.labelPortName); |
187 | this.Controls.Add(this.labelPortName); |
Line 181... | Line 193... | ||
181 | this.Controls.Add(this.textBoxBaudRate); |
193 | this.Controls.Add(this.textBoxBaudRate); |
182 | this.Controls.Add(this.buttonClose); |
194 | this.Controls.Add(this.buttonClose); |
183 | this.Controls.Add(this.buttonOpen); |
195 | this.Controls.Add(this.buttonOpen); |
184 | this.Controls.Add(this.comboBoxPortName); |
196 | this.Controls.Add(this.comboBoxPortName); |
185 | this.Name = "SimpleSerialPort"; |
197 | this.Name = "SimpleSerialPort"; |
186 | this.Size = new System.Drawing.Size(175, 229); |
198 | this.Size = new System.Drawing.Size(181, 229); |
187 | this.ResumeLayout(false); |
199 | this.ResumeLayout(false); |
188 | this.PerformLayout(); |
200 | this.PerformLayout(); |
Line 189... | Line 201... | ||
189 | 201 | ||
Line 203... | Line 215... | ||
203 | private System.Windows.Forms.Label labelPortName; |
215 | private System.Windows.Forms.Label labelPortName; |
204 | private System.Windows.Forms.Label labelBaudRate; |
216 | private System.Windows.Forms.Label labelBaudRate; |
205 | private System.Windows.Forms.Label labelDataBits; |
217 | private System.Windows.Forms.Label labelDataBits; |
206 | private System.Windows.Forms.Label labelStopBits; |
218 | private System.Windows.Forms.Label labelStopBits; |
207 | private System.Windows.Forms.Label labelParity; |
219 | private System.Windows.Forms.Label labelParity; |
- | 220 | private System.Windows.Forms.Button btnRefresh; |
|
208 | } |
221 | } |
209 | } |
222 | } |