diff options
Diffstat (limited to 'Histacom2/TitleScreen.cs')
| -rw-r--r-- | Histacom2/TitleScreen.cs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Histacom2/TitleScreen.cs b/Histacom2/TitleScreen.cs index e810d5d..37539d9 100644 --- a/Histacom2/TitleScreen.cs +++ b/Histacom2/TitleScreen.cs @@ -105,11 +105,7 @@ namespace Histacom2 private void VM_WidthHeight_KeyPress(object sender, KeyPressEventArgs e) { - if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar) && - (e.KeyChar != '.')) - { - e.Handled = true; - } + if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar) && (e.KeyChar != '.')) e.Handled = true; // only allow one decimal point if ((e.KeyChar == '.') && ((sender as TextBox).Text.IndexOf('.') > -1)) e.Handled = true; |
