Ejemplo n.º 1
0
 /// <summary>
 /// This is the event handler that occurs when the form is opened
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BMICalculator_Load(object sender, EventArgs e)
 {
     ImperialRadioButton.Checked = true;
     BackSpaceButton.Hide();
     ZeroButton.Hide();
     OneButtton.Hide();
     TwoButton.Hide();
     ThreeButton.Hide();
     FourButton.Hide();
     FiveButton.Hide();
     SixButton.Hide();
     SevenButton.Hide();
     EightButton.Hide();
     NineButton.Hide();
     this.ProgressBar.Increment(10);
     HeightTextBox.Enabled = true;
     WeightTextBox.Enabled = true;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// When the HeightTextBox is clicked, the following code starts functioning
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void HeightTextBox_Click(object sender, EventArgs e)
 {
     OneButtton.Show();
     TwoButton.Show();
     ThreeButton.Show();
     FourButton.Show();
     FiveButton.Show();
     SixButton.Show();
     SevenButton.Show();
     EightButton.Show();
     NineButton.Show();
     BackSpaceButton.Show();
     HeightTextBox.Enabled = true;
     if ((ImperialRadioButton.Checked) || (MetricRadioButton.Checked))
     {
         if (HeightTextBox.Text != "")
         {
             ProgressBar.Value = 25;
         }
     }
 }