/akStopWatch/trunk/MainForm.cs |
---|
66,7 → 66,13 |
private void MainForm_KeyPress(object sender, KeyPressEventArgs e) |
{ |
int n = int.Parse(e.KeyChar.ToString()); |
int n; |
try { |
n = int.Parse(e.KeyChar.ToString()); |
} |
catch(Exception ex) { |
n = -1; // NaN |
} |
if(n >= 0 && n < times.Length) |
{ |