Exemple #1
0
        private void FruitJuiceradioButton_CheckedChanged(object sender, EventArgs e)
        {
            DrinkPricetextBox.Text = FRUITJUICE_PRICE.ToString("C");
            drinkOrderPrice        = FRUITJUICE_PRICE;
            DrinkQuantitytextBox.Focus();

            DrinkSelLabel.Text = "Drink Selected: Fruit Juice";
        }
Exemple #2
0
        private void SmoothieradioButton_CheckedChanged(object sender, EventArgs e)
        {
            DrinkPricetextBox.Text = SMOOTHIE_PRICE.ToString("C");
            drinkOrderPrice        = SMOOTHIE_PRICE;
            DrinkQuantitytextBox.Focus();

            DrinkSelLabel.Text = "Drink Selected: Smoothie";
        }
Exemple #3
0
        private void FruitJuiceradioButton_CheckedChanged(object sender, EventArgs e)
        {
            DrinkPricetextBox.Text = string.Format("{0:C}", FRUITJUICE_PRICE);
            DrinkQuantitytextBox.Focus();
            Drinkslabel.Visible = FruitJuiceradioButton.Checked;

            if (sender is RadioButton)
            {
                RadioButton radioButton = (RadioButton)sender;
                if (radioButton.Checked)
                {
                    Drinkslabel.Text = string.Format("Drinks Selection: Fruit Juice");
                }
            }

            drinkPrice = FRUITJUICE_PRICE;
        }
Exemple #4
0
        private void SmoothieradioButton_CheckedChanged(object sender, EventArgs e)
        {
            DrinkPricetextBox.Text = string.Format("{0:C}", SMOOTHIE_PRICE);
            DrinkQuantitytextBox.Focus();
            Drinkslabel.Visible = SmoothieradioButton.Checked;

            if (sender is RadioButton)
            {
                RadioButton radioButton = (RadioButton)sender;
                if (radioButton.Checked)
                {
                    Drinkslabel.Text = string.Format("Drinks Selection: Smoothie");
                }
            }

            drinkPrice = SMOOTHIE_PRICE;
        }