aboutsummaryrefslogtreecommitdiff
path: root/Histacom2/TitleScreen.cs
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-09-13 11:13:17 -0400
committerlempamo <[email protected]>2017-09-13 11:13:17 -0400
commite4bb33426e4e1a3b5c5ef36866ef2947a7d4356d (patch)
treec4a5c609b5dda7bf2c83a28bad19cffc124be1bf /Histacom2/TitleScreen.cs
parentab9f118edb06826ed49c0b46bb1bce38d407e4f6 (diff)
downloadhistacom2-e4bb33426e4e1a3b5c5ef36866ef2947a7d4356d.tar.gz
histacom2-e4bb33426e4e1a3b5c5ef36866ef2947a7d4356d.tar.bz2
histacom2-e4bb33426e4e1a3b5c5ef36866ef2947a7d4356d.zip
start menu stuffs
Diffstat (limited to 'Histacom2/TitleScreen.cs')
-rw-r--r--Histacom2/TitleScreen.cs6
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;