Ejemplo n.º 1
0
        private void ShortcakeradioButton_CheckedChanged(object sender, EventArgs e)
        {
            DessertPricetextBox.Text = SHORTCAKE_PRICE.ToString("C");
            dessertOrderPrice        = SHORTCAKE_PRICE;
            DessertQuantitytextBox.Focus();

            DessertSelLabel.Text = "Dessert Selected: Shortcake";
        }
Ejemplo n.º 2
0
        private void ShortcakeradioButton_CheckedChanged(object sender, EventArgs e)
        {
            DessertPricetextBox.Text = string.Format("{0:C}", SHORTCAKE_PRICE);
            DessertQuantitytextBox.Focus();
            Dessertslabel.Visible = ShortcakeradioButton.Checked;

            if (sender is RadioButton)
            {
                RadioButton radioButton = (RadioButton)sender;
                if (radioButton.Checked)
                {
                    Dessertslabel.Text = string.Format("Desserts Selection: Shortcake");
                }
            }

            dessertsPrice = SHORTCAKE_PRICE;
        }