private void TestHorizonTextBox_Validating(object sender, System.ComponentModel.CancelEventArgs e)
        {
            int testHorizon;

            if (!int.TryParse(TestHorizonTextBox.Text, out testHorizon))
            {
                e.Cancel = true;
                TestHorizonErrorProvider.SetError(TestHorizonTextBox, "Please enter a numeric value.");
                TestHorizonTextBox.SelectAll();
            }
        }
 private void TestHorizonTextBox_Validated(object sender, System.EventArgs e)
 {
     Content.TestHorizon = int.Parse(TestHorizonTextBox.Text);
     TestHorizonErrorProvider.SetError(TestHorizonTextBox, string.Empty);
     TestHorizonTextBox.Text = Content.TestHorizon.ToString();
 }