Ejemplo n.º 1
0
        private void rdbUSUnitInput_CheckedChanged(object sender, EventArgs e)
        {
            if (rdbUSUnitInput.Checked)
            {
                lblHeight.Text = "Height (ft)";
                lblWeight.Text = "Weight (lbs)";

                bmiCalculator = AmericanCalculator.GetInstance(employee);

                lblHeightFt.Visible     = true;
                lblHeightIn.Visible     = true;
                txtHeightInches.Visible = true;
            }
        }
Ejemplo n.º 2
0
        //UI initilization
        private void InitializeGUI()
        {
            this.Text = "The Body Mass Calculator";

            rdbUSUnitInput.Checked = true;
            bmiCalculator          = AmericanCalculator.GetInstance(employee);

            rdbMetricUnitInput.Checked = false;
            lblHeight.Text             = "Height (ft)";
            lblWeight.Text             = "Weight (lbs)";


            txtHeightInput.Text   = string.Empty;
            txtWeightInput.Text   = string.Empty;
            txtYourNameInput.Text = string.Empty;

            txtHeightInches.Text = string.Empty;

            lblBMIOutput.Text            = string.Empty;
            lblWeightCategoryOutput.Text = string.Empty;
            lblBMIMessageOutput.Text     = string.Empty;
            lblNormalWeightDisplay.Text  = string.Empty;
        }