private void textBoxIncrementUnit_TextChanged(object sender, EventArgs e)
{
try
{
_incrementUnit = double.Parse(textBoxIncrementUnit.Text);
}
catch (FormatException fe)
{
}
catch (Exception)
{
_incrementUnit = 1;
textBoxIncrementUnit.Text = "1";
//MessageBox.Show("Invalid input!\r\nCheck your input again.", "Caution", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
}
private void textBoxContextSwitchOverhead_TextChanged(object sender, EventArgs e)