Refactor. Turn padding and spacing into their own functions.
This commit is contained in:
708
BaseConverter/Form1.Designer.cs
generated
708
BaseConverter/Form1.Designer.cs
generated
@@ -46,360 +46,360 @@ namespace WindowsFormsApplication1
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.computeButton = new System.Windows.Forms.Button();
|
||||
this.clearButton = new System.Windows.Forms.Button();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.hexTextBox = new System.Windows.Forms.TextBox();
|
||||
this.binaryGroupBox = new System.Windows.Forms.GroupBox();
|
||||
this.binaryTextBox = new System.Windows.Forms.TextBox();
|
||||
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||
this.decimalTextBox = new System.Windows.Forms.TextBox();
|
||||
this.exitButton = new System.Windows.Forms.Button();
|
||||
this.groupBox3 = new System.Windows.Forms.GroupBox();
|
||||
this.octalRadioButton = new System.Windows.Forms.RadioButton();
|
||||
this.decimalRadioButton = new System.Windows.Forms.RadioButton();
|
||||
this.hexRadioButton = new System.Windows.Forms.RadioButton();
|
||||
this.binaryRadioButton = new System.Windows.Forms.RadioButton();
|
||||
this.groupBox4 = new System.Windows.Forms.GroupBox();
|
||||
this.octalTextBox = new System.Windows.Forms.TextBox();
|
||||
this.autoCompute = new System.Windows.Forms.CheckBox();
|
||||
this.autoComputeToolTip = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.paddingToggle = new System.Windows.Forms.CheckBox();
|
||||
this.groupBox5 = new System.Windows.Forms.GroupBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.paddingOffsetTextBox = new System.Windows.Forms.TextBox();
|
||||
this.groupBox6 = new System.Windows.Forms.GroupBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.spacingOffsetTextBox = new System.Windows.Forms.TextBox();
|
||||
this.spacingToggle = new System.Windows.Forms.CheckBox();
|
||||
this.debugLabel = new System.Windows.Forms.Label();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.binaryGroupBox.SuspendLayout();
|
||||
this.groupBox2.SuspendLayout();
|
||||
this.groupBox3.SuspendLayout();
|
||||
this.groupBox4.SuspendLayout();
|
||||
this.groupBox5.SuspendLayout();
|
||||
this.groupBox6.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// computeButton
|
||||
//
|
||||
this.computeButton.Location = new System.Drawing.Point(12, 329);
|
||||
this.computeButton.Name = "computeButton";
|
||||
this.computeButton.Size = new System.Drawing.Size(91, 23);
|
||||
this.computeButton.TabIndex = 5;
|
||||
this.computeButton.Text = "Compute!";
|
||||
this.computeButton.UseVisualStyleBackColor = true;
|
||||
this.computeButton.Click += new System.EventHandler(this.computeButton_Click);
|
||||
//
|
||||
// clearButton
|
||||
//
|
||||
this.clearButton.Location = new System.Drawing.Point(109, 329);
|
||||
this.clearButton.Name = "clearButton";
|
||||
this.clearButton.Size = new System.Drawing.Size(85, 23);
|
||||
this.clearButton.TabIndex = 6;
|
||||
this.clearButton.Text = "Clear";
|
||||
this.clearButton.UseVisualStyleBackColor = true;
|
||||
this.clearButton.Click += new System.EventHandler(this.clearButton_Click);
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.hexTextBox);
|
||||
this.groupBox1.Location = new System.Drawing.Point(10, 72);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(279, 54);
|
||||
this.groupBox1.TabIndex = 1;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Hexadecimal";
|
||||
//
|
||||
// hexTextBox
|
||||
//
|
||||
this.hexTextBox.AccessibleDescription = "";
|
||||
this.hexTextBox.Location = new System.Drawing.Point(7, 20);
|
||||
this.hexTextBox.Name = "hexTextBox";
|
||||
this.hexTextBox.Size = new System.Drawing.Size(261, 20);
|
||||
this.hexTextBox.TabIndex = 0;
|
||||
this.hexTextBox.Text = "0";
|
||||
this.hexTextBox.TextChanged += new System.EventHandler(this.hexTextBox_TextChanged);
|
||||
//
|
||||
// binaryGroupBox
|
||||
//
|
||||
this.binaryGroupBox.Controls.Add(this.binaryTextBox);
|
||||
this.binaryGroupBox.Location = new System.Drawing.Point(9, 12);
|
||||
this.binaryGroupBox.Name = "binaryGroupBox";
|
||||
this.binaryGroupBox.Size = new System.Drawing.Size(279, 54);
|
||||
this.binaryGroupBox.TabIndex = 0;
|
||||
this.binaryGroupBox.TabStop = false;
|
||||
this.binaryGroupBox.Text = "Binary";
|
||||
//
|
||||
// binaryTextBox
|
||||
//
|
||||
this.binaryTextBox.AccessibleDescription = "";
|
||||
this.binaryTextBox.Location = new System.Drawing.Point(7, 20);
|
||||
this.binaryTextBox.Name = "binaryTextBox";
|
||||
this.binaryTextBox.Size = new System.Drawing.Size(261, 20);
|
||||
this.binaryTextBox.TabIndex = 0;
|
||||
this.binaryTextBox.Text = "0";
|
||||
this.binaryTextBox.TextChanged += new System.EventHandler(this.binaryTextBox_TextChanged);
|
||||
//
|
||||
// groupBox2
|
||||
//
|
||||
this.groupBox2.Controls.Add(this.decimalTextBox);
|
||||
this.groupBox2.Location = new System.Drawing.Point(10, 192);
|
||||
this.groupBox2.Name = "groupBox2";
|
||||
this.groupBox2.Size = new System.Drawing.Size(279, 54);
|
||||
this.groupBox2.TabIndex = 3;
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "Decimal";
|
||||
//
|
||||
// decimalTextBox
|
||||
//
|
||||
this.decimalTextBox.AccessibleDescription = "";
|
||||
this.decimalTextBox.Location = new System.Drawing.Point(7, 20);
|
||||
this.decimalTextBox.Name = "decimalTextBox";
|
||||
this.decimalTextBox.Size = new System.Drawing.Size(261, 20);
|
||||
this.decimalTextBox.TabIndex = 0;
|
||||
this.decimalTextBox.Text = "0";
|
||||
this.decimalTextBox.TextChanged += new System.EventHandler(this.decimalTextBox_TextChanged);
|
||||
//
|
||||
// exitButton
|
||||
//
|
||||
this.exitButton.Location = new System.Drawing.Point(200, 329);
|
||||
this.exitButton.Name = "exitButton";
|
||||
this.exitButton.Size = new System.Drawing.Size(91, 23);
|
||||
this.exitButton.TabIndex = 7;
|
||||
this.exitButton.Text = "Exit";
|
||||
this.exitButton.UseVisualStyleBackColor = true;
|
||||
this.exitButton.Click += new System.EventHandler(this.exitButton_Click);
|
||||
//
|
||||
// groupBox3
|
||||
//
|
||||
this.groupBox3.Controls.Add(this.octalRadioButton);
|
||||
this.groupBox3.Controls.Add(this.decimalRadioButton);
|
||||
this.groupBox3.Controls.Add(this.hexRadioButton);
|
||||
this.groupBox3.Controls.Add(this.binaryRadioButton);
|
||||
this.groupBox3.Location = new System.Drawing.Point(12, 252);
|
||||
this.groupBox3.Name = "groupBox3";
|
||||
this.groupBox3.Size = new System.Drawing.Size(279, 52);
|
||||
this.groupBox3.TabIndex = 4;
|
||||
this.groupBox3.TabStop = false;
|
||||
this.groupBox3.Text = "Which Base would you like to convert from?";
|
||||
//
|
||||
// octalRadioButton
|
||||
//
|
||||
this.octalRadioButton.AutoSize = true;
|
||||
this.octalRadioButton.Location = new System.Drawing.Point(159, 19);
|
||||
this.octalRadioButton.Name = "octalRadioButton";
|
||||
this.octalRadioButton.Size = new System.Drawing.Size(50, 17);
|
||||
this.octalRadioButton.TabIndex = 3;
|
||||
this.octalRadioButton.TabStop = true;
|
||||
this.octalRadioButton.Text = "Octal";
|
||||
this.octalRadioButton.UseVisualStyleBackColor = true;
|
||||
this.octalRadioButton.CheckedChanged += new System.EventHandler(this.octalRadioButton_CheckedChanged);
|
||||
//
|
||||
// decimalRadioButton
|
||||
//
|
||||
this.decimalRadioButton.AutoSize = true;
|
||||
this.decimalRadioButton.Location = new System.Drawing.Point(215, 19);
|
||||
this.decimalRadioButton.Name = "decimalRadioButton";
|
||||
this.decimalRadioButton.Size = new System.Drawing.Size(63, 17);
|
||||
this.decimalRadioButton.TabIndex = 2;
|
||||
this.decimalRadioButton.TabStop = true;
|
||||
this.decimalRadioButton.Text = "Decimal";
|
||||
this.decimalRadioButton.UseVisualStyleBackColor = true;
|
||||
this.decimalRadioButton.CheckedChanged += new System.EventHandler(this.decimalRadioButton_CheckedChanged);
|
||||
//
|
||||
// hexRadioButton
|
||||
//
|
||||
this.hexRadioButton.AutoSize = true;
|
||||
this.hexRadioButton.Location = new System.Drawing.Point(67, 19);
|
||||
this.hexRadioButton.Name = "hexRadioButton";
|
||||
this.hexRadioButton.Size = new System.Drawing.Size(86, 17);
|
||||
this.hexRadioButton.TabIndex = 1;
|
||||
this.hexRadioButton.TabStop = true;
|
||||
this.hexRadioButton.Text = "Hexadecimal";
|
||||
this.hexRadioButton.UseVisualStyleBackColor = true;
|
||||
this.hexRadioButton.CheckedChanged += new System.EventHandler(this.hexRadioButton_CheckedChanged);
|
||||
//
|
||||
// binaryRadioButton
|
||||
//
|
||||
this.binaryRadioButton.AutoSize = true;
|
||||
this.binaryRadioButton.Location = new System.Drawing.Point(7, 19);
|
||||
this.binaryRadioButton.Name = "binaryRadioButton";
|
||||
this.binaryRadioButton.Size = new System.Drawing.Size(54, 17);
|
||||
this.binaryRadioButton.TabIndex = 0;
|
||||
this.binaryRadioButton.TabStop = true;
|
||||
this.binaryRadioButton.Text = "Binary";
|
||||
this.binaryRadioButton.UseVisualStyleBackColor = true;
|
||||
this.binaryRadioButton.CheckedChanged += new System.EventHandler(this.binaryRadioButton_CheckedChanged);
|
||||
//
|
||||
// groupBox4
|
||||
//
|
||||
this.groupBox4.Controls.Add(this.octalTextBox);
|
||||
this.groupBox4.Location = new System.Drawing.Point(9, 132);
|
||||
this.groupBox4.Name = "groupBox4";
|
||||
this.groupBox4.Size = new System.Drawing.Size(279, 54);
|
||||
this.groupBox4.TabIndex = 2;
|
||||
this.groupBox4.TabStop = false;
|
||||
this.groupBox4.Text = "Octal";
|
||||
//
|
||||
// octalTextBox
|
||||
//
|
||||
this.octalTextBox.AccessibleDescription = "";
|
||||
this.octalTextBox.Location = new System.Drawing.Point(7, 20);
|
||||
this.octalTextBox.Name = "octalTextBox";
|
||||
this.octalTextBox.Size = new System.Drawing.Size(261, 20);
|
||||
this.octalTextBox.TabIndex = 0;
|
||||
this.octalTextBox.Text = "0";
|
||||
this.octalTextBox.TextChanged += new System.EventHandler(this.octalTextBox_TextChanged);
|
||||
//
|
||||
// autoCompute
|
||||
//
|
||||
this.autoCompute.AutoSize = true;
|
||||
this.autoCompute.Location = new System.Drawing.Point(16, 310);
|
||||
this.autoCompute.Name = "autoCompute";
|
||||
this.autoCompute.Size = new System.Drawing.Size(138, 17);
|
||||
this.autoCompute.TabIndex = 8;
|
||||
this.autoCompute.Text = "Automatically compute?";
|
||||
this.autoCompute.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// autoComputeToolTip
|
||||
//
|
||||
this.autoComputeToolTip.IsBalloon = true;
|
||||
//
|
||||
// paddingToggle
|
||||
//
|
||||
this.paddingToggle.AutoSize = true;
|
||||
this.paddingToggle.Location = new System.Drawing.Point(6, 19);
|
||||
this.paddingToggle.Name = "paddingToggle";
|
||||
this.paddingToggle.Size = new System.Drawing.Size(81, 17);
|
||||
this.paddingToggle.TabIndex = 9;
|
||||
this.paddingToggle.Text = "Pad Zeros?";
|
||||
this.paddingToggle.UseVisualStyleBackColor = true;
|
||||
this.paddingToggle.CheckedChanged += new System.EventHandler(this.paddingToggle_CheckedChanged);
|
||||
//
|
||||
// groupBox5
|
||||
//
|
||||
this.groupBox5.Controls.Add(this.label1);
|
||||
this.groupBox5.Controls.Add(this.paddingOffsetTextBox);
|
||||
this.groupBox5.Controls.Add(this.paddingToggle);
|
||||
this.groupBox5.Location = new System.Drawing.Point(295, 13);
|
||||
this.groupBox5.Name = "groupBox5";
|
||||
this.groupBox5.Size = new System.Drawing.Size(89, 88);
|
||||
this.groupBox5.TabIndex = 10;
|
||||
this.groupBox5.TabStop = false;
|
||||
this.groupBox5.Text = "Padding";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label1.Location = new System.Drawing.Point(7, 39);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(76, 14);
|
||||
this.label1.TabIndex = 11;
|
||||
this.label1.Text = "Padding offset";
|
||||
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// paddingOffsetTextBox
|
||||
//
|
||||
this.paddingOffsetTextBox.Location = new System.Drawing.Point(7, 59);
|
||||
this.paddingOffsetTextBox.Name = "paddingOffsetTextBox";
|
||||
this.paddingOffsetTextBox.ReadOnly = true;
|
||||
this.paddingOffsetTextBox.Size = new System.Drawing.Size(76, 20);
|
||||
this.paddingOffsetTextBox.TabIndex = 10;
|
||||
this.paddingOffsetTextBox.Text = "8";
|
||||
this.paddingOffsetTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// groupBox6
|
||||
//
|
||||
this.groupBox6.Controls.Add(this.label2);
|
||||
this.groupBox6.Controls.Add(this.spacingOffsetTextBox);
|
||||
this.groupBox6.Controls.Add(this.spacingToggle);
|
||||
this.groupBox6.Location = new System.Drawing.Point(295, 107);
|
||||
this.groupBox6.Name = "groupBox6";
|
||||
this.groupBox6.Size = new System.Drawing.Size(89, 88);
|
||||
this.groupBox6.TabIndex = 12;
|
||||
this.groupBox6.TabStop = false;
|
||||
this.groupBox6.Text = "Spacing";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label2.Location = new System.Drawing.Point(7, 39);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(76, 14);
|
||||
this.label2.TabIndex = 11;
|
||||
this.label2.Text = "Spacing offset";
|
||||
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// spacingOffsetTextBox
|
||||
//
|
||||
this.spacingOffsetTextBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.spacingOffsetTextBox.Location = new System.Drawing.Point(7, 59);
|
||||
this.spacingOffsetTextBox.Name = "spacingOffsetTextBox";
|
||||
this.spacingOffsetTextBox.ReadOnly = true;
|
||||
this.spacingOffsetTextBox.Size = new System.Drawing.Size(76, 20);
|
||||
this.spacingOffsetTextBox.TabIndex = 10;
|
||||
this.spacingOffsetTextBox.Text = "4";
|
||||
this.spacingOffsetTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// spacingToggle
|
||||
//
|
||||
this.spacingToggle.AutoSize = true;
|
||||
this.spacingToggle.Location = new System.Drawing.Point(6, 19);
|
||||
this.spacingToggle.Name = "spacingToggle";
|
||||
this.spacingToggle.Size = new System.Drawing.Size(71, 17);
|
||||
this.spacingToggle.TabIndex = 9;
|
||||
this.spacingToggle.Text = "Spacing?";
|
||||
this.spacingToggle.UseVisualStyleBackColor = true;
|
||||
this.spacingToggle.CheckedChanged += new System.EventHandler(this.spacingToggle_CheckedChanged);
|
||||
//
|
||||
// debugLabel
|
||||
//
|
||||
this.debugLabel.AutoSize = true;
|
||||
this.debugLabel.Location = new System.Drawing.Point(160, 311);
|
||||
this.debugLabel.Name = "debugLabel";
|
||||
this.debugLabel.Size = new System.Drawing.Size(63, 13);
|
||||
this.debugLabel.TabIndex = 14;
|
||||
this.debugLabel.Text = "debugLabel";
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(396, 364);
|
||||
this.Controls.Add(this.debugLabel);
|
||||
this.Controls.Add(this.groupBox6);
|
||||
this.Controls.Add(this.groupBox5);
|
||||
this.Controls.Add(this.autoCompute);
|
||||
this.Controls.Add(this.groupBox4);
|
||||
this.Controls.Add(this.groupBox3);
|
||||
this.Controls.Add(this.exitButton);
|
||||
this.Controls.Add(this.groupBox2);
|
||||
this.Controls.Add(this.binaryGroupBox);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.Controls.Add(this.clearButton);
|
||||
this.Controls.Add(this.computeButton);
|
||||
this.Name = "Form1";
|
||||
this.Text = "Base Converter - Caleb Fontenot";
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
this.binaryGroupBox.ResumeLayout(false);
|
||||
this.binaryGroupBox.PerformLayout();
|
||||
this.groupBox2.ResumeLayout(false);
|
||||
this.groupBox2.PerformLayout();
|
||||
this.groupBox3.ResumeLayout(false);
|
||||
this.groupBox3.PerformLayout();
|
||||
this.groupBox4.ResumeLayout(false);
|
||||
this.groupBox4.PerformLayout();
|
||||
this.groupBox5.ResumeLayout(false);
|
||||
this.groupBox5.PerformLayout();
|
||||
this.groupBox6.ResumeLayout(false);
|
||||
this.groupBox6.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.computeButton = new System.Windows.Forms.Button();
|
||||
this.clearButton = new System.Windows.Forms.Button();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.hexTextBox = new System.Windows.Forms.TextBox();
|
||||
this.binaryGroupBox = new System.Windows.Forms.GroupBox();
|
||||
this.binaryTextBox = new System.Windows.Forms.TextBox();
|
||||
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||
this.decimalTextBox = new System.Windows.Forms.TextBox();
|
||||
this.exitButton = new System.Windows.Forms.Button();
|
||||
this.groupBox3 = new System.Windows.Forms.GroupBox();
|
||||
this.octalRadioButton = new System.Windows.Forms.RadioButton();
|
||||
this.decimalRadioButton = new System.Windows.Forms.RadioButton();
|
||||
this.hexRadioButton = new System.Windows.Forms.RadioButton();
|
||||
this.binaryRadioButton = new System.Windows.Forms.RadioButton();
|
||||
this.groupBox4 = new System.Windows.Forms.GroupBox();
|
||||
this.octalTextBox = new System.Windows.Forms.TextBox();
|
||||
this.autoCompute = new System.Windows.Forms.CheckBox();
|
||||
this.autoComputeToolTip = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.paddingToggle = new System.Windows.Forms.CheckBox();
|
||||
this.groupBox5 = new System.Windows.Forms.GroupBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.paddingOffsetTextBox = new System.Windows.Forms.TextBox();
|
||||
this.groupBox6 = new System.Windows.Forms.GroupBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.spacingOffsetTextBox = new System.Windows.Forms.TextBox();
|
||||
this.spacingToggle = new System.Windows.Forms.CheckBox();
|
||||
this.debugLabel = new System.Windows.Forms.Label();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.binaryGroupBox.SuspendLayout();
|
||||
this.groupBox2.SuspendLayout();
|
||||
this.groupBox3.SuspendLayout();
|
||||
this.groupBox4.SuspendLayout();
|
||||
this.groupBox5.SuspendLayout();
|
||||
this.groupBox6.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// computeButton
|
||||
//
|
||||
this.computeButton.Location = new System.Drawing.Point(12, 329);
|
||||
this.computeButton.Name = "computeButton";
|
||||
this.computeButton.Size = new System.Drawing.Size(91, 23);
|
||||
this.computeButton.TabIndex = 5;
|
||||
this.computeButton.Text = "Compute!";
|
||||
this.computeButton.UseVisualStyleBackColor = true;
|
||||
this.computeButton.Click += new System.EventHandler(this.computeButton_Click);
|
||||
//
|
||||
// clearButton
|
||||
//
|
||||
this.clearButton.Location = new System.Drawing.Point(109, 329);
|
||||
this.clearButton.Name = "clearButton";
|
||||
this.clearButton.Size = new System.Drawing.Size(85, 23);
|
||||
this.clearButton.TabIndex = 6;
|
||||
this.clearButton.Text = "Clear";
|
||||
this.clearButton.UseVisualStyleBackColor = true;
|
||||
this.clearButton.Click += new System.EventHandler(this.clearButton_Click);
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.hexTextBox);
|
||||
this.groupBox1.Location = new System.Drawing.Point(10, 72);
|
||||
this.groupBox1.Name = "groupBox1";
|
||||
this.groupBox1.Size = new System.Drawing.Size(279, 54);
|
||||
this.groupBox1.TabIndex = 1;
|
||||
this.groupBox1.TabStop = false;
|
||||
this.groupBox1.Text = "Hexadecimal";
|
||||
//
|
||||
// hexTextBox
|
||||
//
|
||||
this.hexTextBox.AccessibleDescription = "";
|
||||
this.hexTextBox.Location = new System.Drawing.Point(7, 20);
|
||||
this.hexTextBox.Name = "hexTextBox";
|
||||
this.hexTextBox.Size = new System.Drawing.Size(261, 20);
|
||||
this.hexTextBox.TabIndex = 0;
|
||||
this.hexTextBox.Text = "0";
|
||||
this.hexTextBox.Click += new System.EventHandler(this.hexTextBox_Enter);
|
||||
//
|
||||
// binaryGroupBox
|
||||
//
|
||||
this.binaryGroupBox.Controls.Add(this.binaryTextBox);
|
||||
this.binaryGroupBox.Location = new System.Drawing.Point(9, 12);
|
||||
this.binaryGroupBox.Name = "binaryGroupBox";
|
||||
this.binaryGroupBox.Size = new System.Drawing.Size(279, 54);
|
||||
this.binaryGroupBox.TabIndex = 0;
|
||||
this.binaryGroupBox.TabStop = false;
|
||||
this.binaryGroupBox.Text = "Binary";
|
||||
//
|
||||
// binaryTextBox
|
||||
//
|
||||
this.binaryTextBox.AccessibleDescription = "";
|
||||
this.binaryTextBox.Location = new System.Drawing.Point(7, 20);
|
||||
this.binaryTextBox.Name = "binaryTextBox";
|
||||
this.binaryTextBox.Size = new System.Drawing.Size(261, 20);
|
||||
this.binaryTextBox.TabIndex = 0;
|
||||
this.binaryTextBox.Text = "0";
|
||||
this.binaryTextBox.Click += new System.EventHandler(this.binaryTextBox_Enter);
|
||||
//
|
||||
// groupBox2
|
||||
//
|
||||
this.groupBox2.Controls.Add(this.decimalTextBox);
|
||||
this.groupBox2.Location = new System.Drawing.Point(10, 192);
|
||||
this.groupBox2.Name = "groupBox2";
|
||||
this.groupBox2.Size = new System.Drawing.Size(279, 54);
|
||||
this.groupBox2.TabIndex = 3;
|
||||
this.groupBox2.TabStop = false;
|
||||
this.groupBox2.Text = "Decimal";
|
||||
//
|
||||
// decimalTextBox
|
||||
//
|
||||
this.decimalTextBox.AccessibleDescription = "";
|
||||
this.decimalTextBox.Location = new System.Drawing.Point(7, 20);
|
||||
this.decimalTextBox.Name = "decimalTextBox";
|
||||
this.decimalTextBox.Size = new System.Drawing.Size(261, 20);
|
||||
this.decimalTextBox.TabIndex = 0;
|
||||
this.decimalTextBox.Text = "0";
|
||||
this.decimalTextBox.Click += new System.EventHandler(this.decimalTextBox_Enter);
|
||||
//
|
||||
// exitButton
|
||||
//
|
||||
this.exitButton.Location = new System.Drawing.Point(200, 329);
|
||||
this.exitButton.Name = "exitButton";
|
||||
this.exitButton.Size = new System.Drawing.Size(91, 23);
|
||||
this.exitButton.TabIndex = 7;
|
||||
this.exitButton.Text = "Exit";
|
||||
this.exitButton.UseVisualStyleBackColor = true;
|
||||
this.exitButton.Click += new System.EventHandler(this.exitButton_Click);
|
||||
//
|
||||
// groupBox3
|
||||
//
|
||||
this.groupBox3.Controls.Add(this.octalRadioButton);
|
||||
this.groupBox3.Controls.Add(this.decimalRadioButton);
|
||||
this.groupBox3.Controls.Add(this.hexRadioButton);
|
||||
this.groupBox3.Controls.Add(this.binaryRadioButton);
|
||||
this.groupBox3.Location = new System.Drawing.Point(12, 252);
|
||||
this.groupBox3.Name = "groupBox3";
|
||||
this.groupBox3.Size = new System.Drawing.Size(279, 52);
|
||||
this.groupBox3.TabIndex = 4;
|
||||
this.groupBox3.TabStop = false;
|
||||
this.groupBox3.Text = "Which Base would you like to convert from?";
|
||||
//
|
||||
// octalRadioButton
|
||||
//
|
||||
this.octalRadioButton.AutoSize = true;
|
||||
this.octalRadioButton.Location = new System.Drawing.Point(159, 19);
|
||||
this.octalRadioButton.Name = "octalRadioButton";
|
||||
this.octalRadioButton.Size = new System.Drawing.Size(50, 17);
|
||||
this.octalRadioButton.TabIndex = 3;
|
||||
this.octalRadioButton.TabStop = true;
|
||||
this.octalRadioButton.Text = "Octal";
|
||||
this.octalRadioButton.UseVisualStyleBackColor = true;
|
||||
this.octalRadioButton.CheckedChanged += new System.EventHandler(this.octalRadioButton_CheckedChanged);
|
||||
//
|
||||
// decimalRadioButton
|
||||
//
|
||||
this.decimalRadioButton.AutoSize = true;
|
||||
this.decimalRadioButton.Location = new System.Drawing.Point(215, 19);
|
||||
this.decimalRadioButton.Name = "decimalRadioButton";
|
||||
this.decimalRadioButton.Size = new System.Drawing.Size(63, 17);
|
||||
this.decimalRadioButton.TabIndex = 2;
|
||||
this.decimalRadioButton.TabStop = true;
|
||||
this.decimalRadioButton.Text = "Decimal";
|
||||
this.decimalRadioButton.UseVisualStyleBackColor = true;
|
||||
this.decimalRadioButton.CheckedChanged += new System.EventHandler(this.decimalRadioButton_CheckedChanged);
|
||||
//
|
||||
// hexRadioButton
|
||||
//
|
||||
this.hexRadioButton.AutoSize = true;
|
||||
this.hexRadioButton.Location = new System.Drawing.Point(67, 19);
|
||||
this.hexRadioButton.Name = "hexRadioButton";
|
||||
this.hexRadioButton.Size = new System.Drawing.Size(86, 17);
|
||||
this.hexRadioButton.TabIndex = 1;
|
||||
this.hexRadioButton.TabStop = true;
|
||||
this.hexRadioButton.Text = "Hexadecimal";
|
||||
this.hexRadioButton.UseVisualStyleBackColor = true;
|
||||
this.hexRadioButton.CheckedChanged += new System.EventHandler(this.hexRadioButton_CheckedChanged);
|
||||
//
|
||||
// binaryRadioButton
|
||||
//
|
||||
this.binaryRadioButton.AutoSize = true;
|
||||
this.binaryRadioButton.Location = new System.Drawing.Point(7, 19);
|
||||
this.binaryRadioButton.Name = "binaryRadioButton";
|
||||
this.binaryRadioButton.Size = new System.Drawing.Size(54, 17);
|
||||
this.binaryRadioButton.TabIndex = 0;
|
||||
this.binaryRadioButton.TabStop = true;
|
||||
this.binaryRadioButton.Text = "Binary";
|
||||
this.binaryRadioButton.UseVisualStyleBackColor = true;
|
||||
this.binaryRadioButton.CheckedChanged += new System.EventHandler(this.binaryRadioButton_CheckedChanged);
|
||||
//
|
||||
// groupBox4
|
||||
//
|
||||
this.groupBox4.Controls.Add(this.octalTextBox);
|
||||
this.groupBox4.Location = new System.Drawing.Point(9, 132);
|
||||
this.groupBox4.Name = "groupBox4";
|
||||
this.groupBox4.Size = new System.Drawing.Size(279, 54);
|
||||
this.groupBox4.TabIndex = 2;
|
||||
this.groupBox4.TabStop = false;
|
||||
this.groupBox4.Text = "Octal";
|
||||
//
|
||||
// octalTextBox
|
||||
//
|
||||
this.octalTextBox.AccessibleDescription = "";
|
||||
this.octalTextBox.Location = new System.Drawing.Point(7, 20);
|
||||
this.octalTextBox.Name = "octalTextBox";
|
||||
this.octalTextBox.Size = new System.Drawing.Size(261, 20);
|
||||
this.octalTextBox.TabIndex = 0;
|
||||
this.octalTextBox.Text = "0";
|
||||
this.octalTextBox.Click += new System.EventHandler(this.octalTextBox_Enter);
|
||||
//
|
||||
// autoCompute
|
||||
//
|
||||
this.autoCompute.AutoSize = true;
|
||||
this.autoCompute.Location = new System.Drawing.Point(16, 310);
|
||||
this.autoCompute.Name = "autoCompute";
|
||||
this.autoCompute.Size = new System.Drawing.Size(170, 17);
|
||||
this.autoCompute.TabIndex = 8;
|
||||
this.autoCompute.Text = "Compute upon pressing enter?";
|
||||
this.autoCompute.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// autoComputeToolTip
|
||||
//
|
||||
this.autoComputeToolTip.IsBalloon = true;
|
||||
//
|
||||
// paddingToggle
|
||||
//
|
||||
this.paddingToggle.AutoSize = true;
|
||||
this.paddingToggle.Location = new System.Drawing.Point(6, 19);
|
||||
this.paddingToggle.Name = "paddingToggle";
|
||||
this.paddingToggle.Size = new System.Drawing.Size(81, 17);
|
||||
this.paddingToggle.TabIndex = 9;
|
||||
this.paddingToggle.Text = "Pad Zeros?";
|
||||
this.paddingToggle.UseVisualStyleBackColor = true;
|
||||
this.paddingToggle.CheckedChanged += new System.EventHandler(this.paddingToggle_CheckedChanged);
|
||||
//
|
||||
// groupBox5
|
||||
//
|
||||
this.groupBox5.Controls.Add(this.label1);
|
||||
this.groupBox5.Controls.Add(this.paddingOffsetTextBox);
|
||||
this.groupBox5.Controls.Add(this.paddingToggle);
|
||||
this.groupBox5.Location = new System.Drawing.Point(295, 13);
|
||||
this.groupBox5.Name = "groupBox5";
|
||||
this.groupBox5.Size = new System.Drawing.Size(89, 88);
|
||||
this.groupBox5.TabIndex = 10;
|
||||
this.groupBox5.TabStop = false;
|
||||
this.groupBox5.Text = "Padding";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label1.Location = new System.Drawing.Point(7, 39);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(76, 14);
|
||||
this.label1.TabIndex = 11;
|
||||
this.label1.Text = "Padding offset";
|
||||
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// paddingOffsetTextBox
|
||||
//
|
||||
this.paddingOffsetTextBox.Location = new System.Drawing.Point(7, 59);
|
||||
this.paddingOffsetTextBox.Name = "paddingOffsetTextBox";
|
||||
this.paddingOffsetTextBox.ReadOnly = true;
|
||||
this.paddingOffsetTextBox.Size = new System.Drawing.Size(76, 20);
|
||||
this.paddingOffsetTextBox.TabIndex = 10;
|
||||
this.paddingOffsetTextBox.Text = "8";
|
||||
this.paddingOffsetTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// groupBox6
|
||||
//
|
||||
this.groupBox6.Controls.Add(this.label2);
|
||||
this.groupBox6.Controls.Add(this.spacingOffsetTextBox);
|
||||
this.groupBox6.Controls.Add(this.spacingToggle);
|
||||
this.groupBox6.Location = new System.Drawing.Point(295, 107);
|
||||
this.groupBox6.Name = "groupBox6";
|
||||
this.groupBox6.Size = new System.Drawing.Size(89, 88);
|
||||
this.groupBox6.TabIndex = 12;
|
||||
this.groupBox6.TabStop = false;
|
||||
this.groupBox6.Text = "Spacing";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label2.Location = new System.Drawing.Point(7, 39);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(76, 14);
|
||||
this.label2.TabIndex = 11;
|
||||
this.label2.Text = "Spacing offset";
|
||||
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// spacingOffsetTextBox
|
||||
//
|
||||
this.spacingOffsetTextBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.spacingOffsetTextBox.Location = new System.Drawing.Point(7, 59);
|
||||
this.spacingOffsetTextBox.Name = "spacingOffsetTextBox";
|
||||
this.spacingOffsetTextBox.ReadOnly = true;
|
||||
this.spacingOffsetTextBox.Size = new System.Drawing.Size(76, 20);
|
||||
this.spacingOffsetTextBox.TabIndex = 10;
|
||||
this.spacingOffsetTextBox.Text = "4";
|
||||
this.spacingOffsetTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
||||
//
|
||||
// spacingToggle
|
||||
//
|
||||
this.spacingToggle.AutoSize = true;
|
||||
this.spacingToggle.Location = new System.Drawing.Point(6, 19);
|
||||
this.spacingToggle.Name = "spacingToggle";
|
||||
this.spacingToggle.Size = new System.Drawing.Size(71, 17);
|
||||
this.spacingToggle.TabIndex = 9;
|
||||
this.spacingToggle.Text = "Spacing?";
|
||||
this.spacingToggle.UseVisualStyleBackColor = true;
|
||||
this.spacingToggle.CheckedChanged += new System.EventHandler(this.spacingToggle_CheckedChanged);
|
||||
//
|
||||
// debugLabel
|
||||
//
|
||||
this.debugLabel.AutoSize = true;
|
||||
this.debugLabel.Location = new System.Drawing.Point(192, 311);
|
||||
this.debugLabel.Name = "debugLabel";
|
||||
this.debugLabel.Size = new System.Drawing.Size(63, 13);
|
||||
this.debugLabel.TabIndex = 14;
|
||||
this.debugLabel.Text = "debugLabel";
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(396, 364);
|
||||
this.Controls.Add(this.debugLabel);
|
||||
this.Controls.Add(this.groupBox6);
|
||||
this.Controls.Add(this.groupBox5);
|
||||
this.Controls.Add(this.autoCompute);
|
||||
this.Controls.Add(this.groupBox4);
|
||||
this.Controls.Add(this.groupBox3);
|
||||
this.Controls.Add(this.exitButton);
|
||||
this.Controls.Add(this.groupBox2);
|
||||
this.Controls.Add(this.binaryGroupBox);
|
||||
this.Controls.Add(this.groupBox1);
|
||||
this.Controls.Add(this.clearButton);
|
||||
this.Controls.Add(this.computeButton);
|
||||
this.Name = "Form1";
|
||||
this.Text = "Base Converter - Caleb Fontenot";
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
this.binaryGroupBox.ResumeLayout(false);
|
||||
this.binaryGroupBox.PerformLayout();
|
||||
this.groupBox2.ResumeLayout(false);
|
||||
this.groupBox2.PerformLayout();
|
||||
this.groupBox3.ResumeLayout(false);
|
||||
this.groupBox3.PerformLayout();
|
||||
this.groupBox4.ResumeLayout(false);
|
||||
this.groupBox4.PerformLayout();
|
||||
this.groupBox5.ResumeLayout(false);
|
||||
this.groupBox5.PerformLayout();
|
||||
this.groupBox6.ResumeLayout(false);
|
||||
this.groupBox6.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
Reference in New Issue
Block a user