Step 1 of fixing the issue with Auto Compute and Spacing

master
Chloe Fontenot 🏳️‍⚧️ 2022-10-10 19:34:53 +07:00
parent 9e8bee43c8
commit 68d4b861ea
13 changed files with 40 additions and 23 deletions

Binary file not shown.

@ -67,12 +67,13 @@ namespace WindowsFormsApplication1
this.autoComputeToolTip = new System.Windows.Forms.ToolTip(this.components); this.autoComputeToolTip = new System.Windows.Forms.ToolTip(this.components);
this.paddingToggle = new System.Windows.Forms.CheckBox(); this.paddingToggle = new System.Windows.Forms.CheckBox();
this.groupBox5 = new System.Windows.Forms.GroupBox(); this.groupBox5 = new System.Windows.Forms.GroupBox();
this.paddingOffsetTextBox = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.paddingOffsetTextBox = new System.Windows.Forms.TextBox();
this.groupBox6 = new System.Windows.Forms.GroupBox(); this.groupBox6 = new System.Windows.Forms.GroupBox();
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
this.spacingOffsetTextBox = new System.Windows.Forms.TextBox(); this.spacingOffsetTextBox = new System.Windows.Forms.TextBox();
this.spacingToggle = new System.Windows.Forms.CheckBox(); this.spacingToggle = new System.Windows.Forms.CheckBox();
this.debugLabel = new System.Windows.Forms.Label();
this.groupBox1.SuspendLayout(); this.groupBox1.SuspendLayout();
this.binaryGroupBox.SuspendLayout(); this.binaryGroupBox.SuspendLayout();
this.groupBox2.SuspendLayout(); this.groupBox2.SuspendLayout();
@ -290,16 +291,6 @@ namespace WindowsFormsApplication1
this.groupBox5.TabStop = false; this.groupBox5.TabStop = false;
this.groupBox5.Text = "Padding"; this.groupBox5.Text = "Padding";
// //
// 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;
//
// label1 // label1
// //
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
@ -310,6 +301,16 @@ namespace WindowsFormsApplication1
this.label1.Text = "Padding offset"; this.label1.Text = "Padding offset";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; 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 // groupBox6
// //
this.groupBox6.Controls.Add(this.label2); this.groupBox6.Controls.Add(this.label2);
@ -354,11 +355,21 @@ namespace WindowsFormsApplication1
this.spacingToggle.UseVisualStyleBackColor = true; this.spacingToggle.UseVisualStyleBackColor = true;
this.spacingToggle.CheckedChanged += new System.EventHandler(this.spacingToggle_CheckedChanged); 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 // Form1
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(396, 364); this.ClientSize = new System.Drawing.Size(396, 364);
this.Controls.Add(this.debugLabel);
this.Controls.Add(this.groupBox6); this.Controls.Add(this.groupBox6);
this.Controls.Add(this.groupBox5); this.Controls.Add(this.groupBox5);
this.Controls.Add(this.autoCompute); this.Controls.Add(this.autoCompute);
@ -419,6 +430,7 @@ namespace WindowsFormsApplication1
private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox spacingOffsetTextBox; private System.Windows.Forms.TextBox spacingOffsetTextBox;
private System.Windows.Forms.CheckBox spacingToggle; private System.Windows.Forms.CheckBox spacingToggle;
private System.Windows.Forms.Label debugLabel;
} }
} }

@ -112,7 +112,8 @@ namespace WindowsFormsApplication1
i++; i++;
} }
} }
binaryTextBox.Text = binaryString; //debugLabel.Text = sender.GetType().ToString();
binaryTextBox.Text = binaryString;
} }
else else
{ {
@ -230,25 +231,29 @@ namespace WindowsFormsApplication1
private void binaryTextBox_TextChanged(object sender, EventArgs e) private void binaryTextBox_TextChanged(object sender, EventArgs e)
{ {
if (autoCompute.Checked) //debugLabel.Text = sender.GetType().ToString();
if (autoCompute.Checked & (sender.GetType().ToString().Equals("System.Windows.Forms.TextBox")))
compute(); compute();
} }
private void hexTextBox_TextChanged(object sender, EventArgs e) private void hexTextBox_TextChanged(object sender, EventArgs e)
{ {
if (autoCompute.Checked) //debugLabel.Text = sender.GetType().ToString();
if (autoCompute.Checked & (sender.GetType().ToString().Equals("System.Windows.Forms.TextBox")))
compute(); compute();
} }
private void octalTextBox_TextChanged(object sender, EventArgs e) private void octalTextBox_TextChanged(object sender, EventArgs e)
{ {
if (autoCompute.Checked) //debugLabel.Text = sender.GetType().ToString();
if (autoCompute.Checked & (sender.GetType().ToString().Equals("System.Windows.Forms.TextBox")))
compute(); compute();
} }
private void decimalTextBox_TextChanged(object sender, EventArgs e) private void decimalTextBox_TextChanged(object sender, EventArgs e)
{ {
if (autoCompute.Checked) //debugLabel.Text = sender.GetType().ToString();
if (autoCompute.Checked & (sender.GetType().ToString().Equals("System.Windows.Forms.TextBox")))
compute(); compute();
} }

@ -11,7 +11,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms> </dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsig:DigestValue>iQndC8edrYzQfW1up66sZRa2OHI=</dsig:DigestValue> <dsig:DigestValue>+JUBzlaAEFuQLXUUHL3753uNLzo=</dsig:DigestValue>
</hash> </hash>
</dependentAssembly> </dependentAssembly>
</dependency> </dependency>

@ -52,14 +52,14 @@
</dependentAssembly> </dependentAssembly>
</dependency> </dependency>
<dependency> <dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="BaseConverter.exe" size="16896"> <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="BaseConverter.exe" size="17408">
<assemblyIdentity name="BaseConverter" version="1.0.0.0" language="neutral" processorArchitecture="msil" /> <assemblyIdentity name="BaseConverter" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
<hash> <hash>
<dsig:Transforms> <dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms> </dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsig:DigestValue>wI+p03vYZj52eZR1ghmskX9GKkg=</dsig:DigestValue> <dsig:DigestValue>JZ1ASdWcyL+xMqxzHTFuvw2MCMo=</dsig:DigestValue>
</hash> </hash>
</dependentAssembly> </dependentAssembly>
</dependency> </dependency>

@ -11,7 +11,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms> </dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsig:DigestValue>iQndC8edrYzQfW1up66sZRa2OHI=</dsig:DigestValue> <dsig:DigestValue>+JUBzlaAEFuQLXUUHL3753uNLzo=</dsig:DigestValue>
</hash> </hash>
</dependentAssembly> </dependentAssembly>
</dependency> </dependency>

@ -11,7 +11,7 @@
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms> </dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsig:DigestValue>iQndC8edrYzQfW1up66sZRa2OHI=</dsig:DigestValue> <dsig:DigestValue>+JUBzlaAEFuQLXUUHL3753uNLzo=</dsig:DigestValue>
</hash> </hash>
</dependentAssembly> </dependentAssembly>
</dependency> </dependency>

@ -52,14 +52,14 @@
</dependentAssembly> </dependentAssembly>
</dependency> </dependency>
<dependency> <dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="BaseConverter.exe" size="16896"> <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="BaseConverter.exe" size="17408">
<assemblyIdentity name="BaseConverter" version="1.0.0.0" language="neutral" processorArchitecture="msil" /> <assemblyIdentity name="BaseConverter" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
<hash> <hash>
<dsig:Transforms> <dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms> </dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<dsig:DigestValue>wI+p03vYZj52eZR1ghmskX9GKkg=</dsig:DigestValue> <dsig:DigestValue>JZ1ASdWcyL+xMqxzHTFuvw2MCMo=</dsig:DigestValue>
</hash> </hash>
</dependentAssembly> </dependentAssembly>
</dependency> </dependency>