36 |
|
this.chkoctal = new System.Windows.Forms.RadioButton(); |
37 |
|
this.chkieee754float = new System.Windows.Forms.RadioButton(); |
38 |
|
this.txtInput = new System.Windows.Forms.MultiNumericBox(); |
39 |
+ |
this.txtBinary = new System.Windows.Forms.MultiNumericBox(); |
40 |
+ |
this.txtDecimal = new System.Windows.Forms.MultiNumericBox(); |
41 |
+ |
this.txtHex = new System.Windows.Forms.MultiNumericBox(); |
42 |
+ |
this.txtOctal = new System.Windows.Forms.MultiNumericBox(); |
43 |
+ |
this.txtFloat = new System.Windows.Forms.MultiNumericBox(); |
44 |
+ |
this.lblBinary = new System.Windows.Forms.Label(); |
45 |
+ |
this.lblDecimal = new System.Windows.Forms.Label(); |
46 |
+ |
this.lblHex = new System.Windows.Forms.Label(); |
47 |
+ |
this.lblOctal = new System.Windows.Forms.Label(); |
48 |
+ |
this.lblFloat = new System.Windows.Forms.Label(); |
49 |
+ |
this.btnConvert = new System.Windows.Forms.Button(); |
50 |
|
this.grpInputType.SuspendLayout(); |
51 |
|
this.grpInputType_flow.SuspendLayout(); |
52 |
|
this.SuspendLayout(); |
139 |
|
this.txtInput.AutoSize = true; |
140 |
|
this.txtInput.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; |
141 |
|
this.txtInput.Font = new System.Drawing.Font("Courier New", 12F); |
142 |
< |
this.txtInput.InputType = System.Windows.Forms.MultiNumericBox_InputType.Decimal; |
142 |
> |
this.txtInput.InputType = System.Windows.Forms.NumericInputTypes.Decimal; |
143 |
|
this.txtInput.Location = new System.Drawing.Point(137, 9); |
144 |
|
this.txtInput.Margin = new System.Windows.Forms.Padding(0); |
145 |
|
this.txtInput.Name = "txtInput"; |
146 |
|
this.txtInput.ReadOnly = false; |
147 |
|
this.txtInput.Size = new System.Drawing.Size(221, 28); |
148 |
|
this.txtInput.TabIndex = 2; |
149 |
< |
this.txtInput.Value = 0F; |
149 |
> |
this.txtInput.Value = "0"; |
150 |
> |
// |
151 |
> |
// txtBinary |
152 |
> |
// |
153 |
> |
this.txtBinary.AutoSize = true; |
154 |
> |
this.txtBinary.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; |
155 |
> |
this.txtBinary.Font = new System.Drawing.Font("Courier New", 12F); |
156 |
> |
this.txtBinary.InputType = System.Windows.Forms.NumericInputTypes.Binary; |
157 |
> |
this.txtBinary.Location = new System.Drawing.Point(76, 174); |
158 |
> |
this.txtBinary.Margin = new System.Windows.Forms.Padding(0); |
159 |
> |
this.txtBinary.Name = "txtBinary"; |
160 |
> |
this.txtBinary.ReadOnly = true; |
161 |
> |
this.txtBinary.Size = new System.Drawing.Size(221, 28); |
162 |
> |
this.txtBinary.TabIndex = 3; |
163 |
> |
this.txtBinary.Value ="0"; |
164 |
> |
// |
165 |
> |
// txtDecimal |
166 |
> |
// |
167 |
> |
this.txtDecimal.AutoSize = true; |
168 |
> |
this.txtDecimal.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; |
169 |
> |
this.txtDecimal.Font = new System.Drawing.Font("Courier New", 12F); |
170 |
> |
this.txtDecimal.InputType = System.Windows.Forms.NumericInputTypes.Decimal; |
171 |
> |
this.txtDecimal.Location = new System.Drawing.Point(76, 202); |
172 |
> |
this.txtDecimal.Margin = new System.Windows.Forms.Padding(0); |
173 |
> |
this.txtDecimal.Name = "txtDecimal"; |
174 |
> |
this.txtDecimal.ReadOnly = true; |
175 |
> |
this.txtDecimal.Size = new System.Drawing.Size(221, 28); |
176 |
> |
this.txtDecimal.TabIndex = 4; |
177 |
> |
this.txtDecimal.Value ="0"; |
178 |
> |
// |
179 |
> |
// txtHex |
180 |
> |
// |
181 |
> |
this.txtHex.AutoSize = true; |
182 |
> |
this.txtHex.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; |
183 |
> |
this.txtHex.Font = new System.Drawing.Font("Courier New", 12F); |
184 |
> |
this.txtHex.InputType = System.Windows.Forms.NumericInputTypes.Hex; |
185 |
> |
this.txtHex.Location = new System.Drawing.Point(76, 230); |
186 |
> |
this.txtHex.Margin = new System.Windows.Forms.Padding(0); |
187 |
> |
this.txtHex.Name = "txtHex"; |
188 |
> |
this.txtHex.ReadOnly = true; |
189 |
> |
this.txtHex.Size = new System.Drawing.Size(221, 28); |
190 |
> |
this.txtHex.TabIndex = 5; |
191 |
> |
this.txtHex.Value ="0"; |
192 |
> |
// |
193 |
> |
// txtOctal |
194 |
> |
// |
195 |
> |
this.txtOctal.AutoSize = true; |
196 |
> |
this.txtOctal.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; |
197 |
> |
this.txtOctal.Font = new System.Drawing.Font("Courier New", 12F); |
198 |
> |
this.txtOctal.InputType = System.Windows.Forms.NumericInputTypes.Octal; |
199 |
> |
this.txtOctal.Location = new System.Drawing.Point(76, 258); |
200 |
> |
this.txtOctal.Margin = new System.Windows.Forms.Padding(0); |
201 |
> |
this.txtOctal.Name = "txtOctal"; |
202 |
> |
this.txtOctal.ReadOnly = true; |
203 |
> |
this.txtOctal.Size = new System.Drawing.Size(221, 28); |
204 |
> |
this.txtOctal.TabIndex = 6; |
205 |
> |
this.txtOctal.Value ="0"; |
206 |
> |
// |
207 |
> |
// txtFloat |
208 |
> |
// |
209 |
> |
this.txtFloat.AutoSize = true; |
210 |
> |
this.txtFloat.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; |
211 |
> |
this.txtFloat.Font = new System.Drawing.Font("Courier New", 12F); |
212 |
> |
this.txtFloat.InputType = System.Windows.Forms.NumericInputTypes.IEEE754HexFloat; |
213 |
> |
this.txtFloat.Location = new System.Drawing.Point(76, 286); |
214 |
> |
this.txtFloat.Margin = new System.Windows.Forms.Padding(0); |
215 |
> |
this.txtFloat.Name = "txtFloat"; |
216 |
> |
this.txtFloat.ReadOnly = true; |
217 |
> |
this.txtFloat.Size = new System.Drawing.Size(221, 28); |
218 |
> |
this.txtFloat.TabIndex = 7; |
219 |
> |
this.txtFloat.Value ="0"; |
220 |
> |
// |
221 |
> |
// lblBinary |
222 |
> |
// |
223 |
> |
this.lblBinary.AutoSize = true; |
224 |
> |
this.lblBinary.Location = new System.Drawing.Point(34, 182); |
225 |
> |
this.lblBinary.Name = "lblBinary"; |
226 |
> |
this.lblBinary.Size = new System.Drawing.Size(39, 13); |
227 |
> |
this.lblBinary.TabIndex = 8; |
228 |
> |
this.lblBinary.Text = "Binary:"; |
229 |
> |
// |
230 |
> |
// lblDecimal |
231 |
> |
// |
232 |
> |
this.lblDecimal.AutoSize = true; |
233 |
> |
this.lblDecimal.Location = new System.Drawing.Point(25, 210); |
234 |
> |
this.lblDecimal.Name = "lblDecimal"; |
235 |
> |
this.lblDecimal.Size = new System.Drawing.Size(48, 13); |
236 |
> |
this.lblDecimal.TabIndex = 9; |
237 |
> |
this.lblDecimal.Text = "Decimal:"; |
238 |
> |
// |
239 |
> |
// lblHex |
240 |
> |
// |
241 |
> |
this.lblHex.AutoSize = true; |
242 |
> |
this.lblHex.Location = new System.Drawing.Point(44, 238); |
243 |
> |
this.lblHex.Name = "lblHex"; |
244 |
> |
this.lblHex.Size = new System.Drawing.Size(29, 13); |
245 |
> |
this.lblHex.TabIndex = 10; |
246 |
> |
this.lblHex.Text = "Hex:"; |
247 |
> |
// |
248 |
> |
// lblOctal |
249 |
> |
// |
250 |
> |
this.lblOctal.AutoSize = true; |
251 |
> |
this.lblOctal.Location = new System.Drawing.Point(38, 266); |
252 |
> |
this.lblOctal.Name = "lblOctal"; |
253 |
> |
this.lblOctal.Size = new System.Drawing.Size(35, 13); |
254 |
> |
this.lblOctal.TabIndex = 11; |
255 |
> |
this.lblOctal.Text = "Octal:"; |
256 |
> |
// |
257 |
> |
// lblFloat |
258 |
> |
// |
259 |
> |
this.lblFloat.AutoSize = true; |
260 |
> |
this.lblFloat.Location = new System.Drawing.Point(-2, 294); |
261 |
> |
this.lblFloat.Name = "lblFloat"; |
262 |
> |
this.lblFloat.Size = new System.Drawing.Size(75, 13); |
263 |
> |
this.lblFloat.TabIndex = 12; |
264 |
> |
this.lblFloat.Text = "IEEE754Float:"; |
265 |
> |
// |
266 |
> |
// btnConvert |
267 |
> |
// |
268 |
> |
this.btnConvert.Location = new System.Drawing.Point(203, 95); |
269 |
> |
this.btnConvert.Name = "btnConvert"; |
270 |
> |
this.btnConvert.Size = new System.Drawing.Size(75, 23); |
271 |
> |
this.btnConvert.TabIndex = 13; |
272 |
> |
this.btnConvert.Text = "Convert"; |
273 |
> |
this.btnConvert.UseVisualStyleBackColor = true; |
274 |
> |
this.btnConvert.Click += new System.EventHandler(this.btnConvert_Click); |
275 |
|
// |
276 |
|
// FloatingDataTypeConverter |
277 |
|
// |
278 |
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); |
279 |
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
280 |
|
this.ClientSize = new System.Drawing.Size(438, 339); |
281 |
+ |
this.Controls.Add(this.btnConvert); |
282 |
+ |
this.Controls.Add(this.lblFloat); |
283 |
+ |
this.Controls.Add(this.lblOctal); |
284 |
+ |
this.Controls.Add(this.lblHex); |
285 |
+ |
this.Controls.Add(this.lblDecimal); |
286 |
+ |
this.Controls.Add(this.lblBinary); |
287 |
+ |
this.Controls.Add(this.txtFloat); |
288 |
+ |
this.Controls.Add(this.txtOctal); |
289 |
+ |
this.Controls.Add(this.txtHex); |
290 |
+ |
this.Controls.Add(this.txtDecimal); |
291 |
+ |
this.Controls.Add(this.txtBinary); |
292 |
|
this.Controls.Add(this.txtInput); |
293 |
|
this.Controls.Add(this.grpInputType); |
294 |
|
this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); |
313 |
|
private System.Windows.Forms.RadioButton chkoctal; |
314 |
|
private System.Windows.Forms.RadioButton chkieee754float; |
315 |
|
private System.Windows.Forms.MultiNumericBox txtInput; |
316 |
+ |
private System.Windows.Forms.MultiNumericBox txtBinary; |
317 |
+ |
private System.Windows.Forms.MultiNumericBox txtDecimal; |
318 |
+ |
private System.Windows.Forms.MultiNumericBox txtHex; |
319 |
+ |
private System.Windows.Forms.MultiNumericBox txtOctal; |
320 |
+ |
private System.Windows.Forms.MultiNumericBox txtFloat; |
321 |
+ |
private System.Windows.Forms.Label lblBinary; |
322 |
+ |
private System.Windows.Forms.Label lblDecimal; |
323 |
+ |
private System.Windows.Forms.Label lblHex; |
324 |
+ |
private System.Windows.Forms.Label lblOctal; |
325 |
+ |
private System.Windows.Forms.Label lblFloat; |
326 |
+ |
private System.Windows.Forms.Button btnConvert; |
327 |
|
|
328 |
|
|
329 |
|
} |