Exemple #1
0
 /// <summary>
 /// Clearing user inputs
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ResetButton_Click(object sender, EventArgs e)
 {
     HeightTextBox.Clear();
     WeightTextBox.Clear();
     BMIResultTextBox.Clear();
     BMIScaleTextBox.Clear();
 }
 /// <summary>
 /// This method clears all the fields in the form
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ClearButton_Click_1(object sender, EventArgs e)
 {
     HeightTextBox.Clear();
     WeightTextBox.Clear();
     BMIResultTextBox.Clear();
     BMIScaleTextBox.Clear();
     HeightTextBox.Focus();
 }