Added spacing and padding support. (Note of known bug: For some reason, using the spacing combined with the auto compute feature causes an infinite loop, causing the program to crash.

This commit is contained in:
2022-10-10 13:39:43 -05:00
parent 6ad518d242
commit f33ec5a5c9
19 changed files with 12 additions and 12 deletions

View File

@@ -48,10 +48,10 @@ namespace WindowsFormsApplication1
decimalNum = long.Parse(decimalTextBox.Text);
hexNum = Convert.ToInt64(hexTextBox.Text, 16);
// Remove spacing from binaryTextBox before parsing it
if (spacingToggle.Checked)
{
//if (spacingToggle.Checked)
//{
binaryTextBox.Text = binaryTextBox.Text.Replace(" ", "");
}
//}
binNum = Convert.ToInt64(binaryTextBox.Text, 2);
octalNum = Convert.ToInt64(octalTextBox.Text, 8);
paddingOffset = int.Parse(paddingOffsetTextBox.Text);