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"; }
private void SmoothieradioButton_CheckedChanged(object sender, EventArgs e) { DrinkPricetextBox.Text = SMOOTHIE_PRICE.ToString("C"); drinkOrderPrice = SMOOTHIE_PRICE; DrinkQuantitytextBox.Focus(); DrinkSelLabel.Text = "Drink Selected: Smoothie"; }
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; }
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; }