Esempio n. 1
0
        //
        // tabBeverages
        //
        #region tabBeverage Code (Täman)

        private void TG_beverageSelect(object sender, EventArgs e)
        {
            Button currentButton = sender as Button;

            ButtonAnimation.ButtonSelect(this, currentButton);
            Price bevPrice = new Price();

            // Checks what button is selected and sends size and price to object
            if (currentButton.Text == "Small")
            {
                size        = Model.Beverage.BevSize.Small;
                price       = bevPrice.BeverageSm;
                sizeChecked = true;
            }
            else if (currentButton.Text == "Medium")
            {
                size        = Model.Beverage.BevSize.Medium;
                price       = bevPrice.BeverageMd;
                sizeChecked = true;
            }
            else if (currentButton.Text == "Large")
            {
                size        = Model.Beverage.BevSize.Large;
                price       = bevPrice.BeverageLg;
                sizeChecked = true;
            }
            else if (currentButton.Text == "Bazinga XL")
            {
                size        = Model.Beverage.BevSize.XL;
                price       = bevPrice.BeverageXL;
                sizeChecked = true;
            }
            else if (currentButton.Text == "Coca-Cola")
            {
                drink      = currentButton.Text;
                bevChecked = true;
                tabControl_TG_Beverages.SelectedTab = tab_TG_CocaCola;
            }
            else if (currentButton.Text == "Diet Coke")
            {
                drink      = currentButton.Text;
                bevChecked = true;
                tabControl_TG_Beverages.SelectedTab = tab_TG_DietCola;
            }
            else if (currentButton.Text == "Sprite")
            {
                drink      = currentButton.Text;
                bevChecked = true;
                tabControl_TG_Beverages.SelectedTab = tab_TG_Sprite;
            }
            else if (currentButton.Text == "Dr. Pepper")
            {
                drink      = currentButton.Text;
                bevChecked = true;
                tabControl_TG_Beverages.SelectedTab = tab_TG_DrPepper;
            }
        }
Esempio n. 2
0
        //
        // tabStart - Täman
        //
        #region tabStart Code (Täman)

        #region Dine In, Carry Out

        private void btn_TG_DineIn_Click(object sender, EventArgs e)
        {
            ClearFields();
            tabControl2.SelectTab(tab_TG_DineIn);
            txt_TG_NameDineIn.BackColor = colFormBackColor;
            txt_TG_NameDineIn.Focus();
            Button currentButton = sender as Button;

            ButtonAnimation.ButtonSelect(this, currentButton);
        }
Esempio n. 3
0
 private void btn_RS_toBuild_Click(object sender, EventArgs e)
 {
     tabControl_RS_Zas.SelectedTab = tabPage_RS_BuildAZa;
     RS_isSpecialty = false;
     ButtonAnimation.ButtonSelect(this, btn_RS_toBuild);
 }
Esempio n. 4
0
        //
        // tabPageSpecialtyZas - Roxy
        //
        #region tabPageSpecialtyZas Code (Roxy)

        #region Tab selection buttons

        private void btn_RS_toSpecialties_Click(object sender, EventArgs e)
        {
            tabControl_RS_Zas.SelectedTab = tabPage_RS_specialties;
            RS_isSpecialty = true;
            ButtonAnimation.ButtonSelect(this, btn_RS_toSpecialties);
        }
Esempio n. 5
0
 private void btn_SL_crustGlutenFree_Click(object sender, EventArgs e)
 {
     ButtonAnimation.ButtonSelect(this, btn_SL_crustGlutenFree);
     pizzaCrust = "Gluten-Free";
 }
Esempio n. 6
0
 private void btn_SL_crustThick_Click(object sender, EventArgs e)
 {
     ButtonAnimation.ButtonSelect(this, btn_SL_crustThick);
     pizzaCrust = "Thick";
 }
Esempio n. 7
0
 private void btn_SL_crustChrispyThin_Click(object sender, EventArgs e)
 {
     ButtonAnimation.ButtonSelect(this, btn_SL_crustChrispyThin);
     pizzaCrust = "Crispy-Thin";
 }
Esempio n. 8
0
 private void btn_SL_crustHandTossed_Click(object sender, EventArgs e)
 {
     ButtonAnimation.ButtonSelect(this, btn_SL_crustHandTossed);
     pizzaCrust = "Hand Tossed";
 }
Esempio n. 9
0
 private void btn_SL_sizeXLG_Click(object sender, EventArgs e)
 {
     ButtonAnimation.ButtonSelect(this, btn_SL_sizeXLG);
     pizzaSize     = "Extra Large";
     newPizzaPrice = 13.97m;
 }
Esempio n. 10
0
 private void btn_SL_sizeMed_Click(object sender, EventArgs e)
 {
     ButtonAnimation.ButtonSelect(this, btn_SL_sizeMed);
     pizzaSize     = "Medium";
     newPizzaPrice = 7.99m;
 }
Esempio n. 11
0
        //The following eight event handlers are for the Size/Crust tab of the form

        private void btn_SL_sizeSmall_Click(object sender, EventArgs e)
        {
            ButtonAnimation.ButtonSelect(this, btn_SL_sizeSmall);
            pizzaSize     = "Small";
            newPizzaPrice = 3.99m;
        }