示例#1
0
        private void AddThaiBites_Click(object sender, EventArgs e)
        {
            // create list of expanders
            // split all expanders into their own list of strings
            // first item is content type (follow same name, it uses string comparison)
            //  second item is header name (don't use whitespaces?)

            List <String> types = new List <String>();
            List <String> dips  = new List <String>();

            List <List <String> > menuItems = new List <List <String> >();

            types.Add("RadioButton");
            types.Add("Type");
            types.Add("Breaded Chicken Breast  $13.00");
            types.Add("Breaded Shrimps  $13.00");

            dips.Add("CheckBox");
            dips.Add("Dips");
            dips.Add("Blue Cheese Dip + $2.60");
            dips.Add("Chipotle Caesar Dip + $2.60");
            dips.Add("Ranch Dip + $2.60");
            dips.Add("Creamy Garlic Dip + $2.60");
            dips.Add("Cactus Dip + $2.60");

            menuItems.Add(types);
            menuItems.Add(dips);


            OrderPopup op = new OrderPopup(orderSummery, "Thai Bites", menuItems, utilityGrid, subtotalLabel, taxLabel, totalLabel, preTotalLabel, price);

            StarterFrame.Children.Add(op);
        }
示例#2
0
        private void AddGarlicBread_Click(object sender, EventArgs e)
        {
            // create list of expanders
            // split all expanders into their own list of strings
            // first item is content type (follow same name, it uses string comparison)
            //  second item is header name (don't use whitespaces?)

            List <String> sizes = new List <String>();
            List <String> dips  = new List <String>();

            List <List <String> > menuItems = new List <List <String> >();

            sizes.Add("RadioButton");
            sizes.Add("Size");
            sizes.Add("1 Slice  $1.80");
            sizes.Add("2 Slices  $3.20");

            dips.Add("CheckBox");
            dips.Add("Dip");
            dips.Add("Beefy Bolognese meat sauce + $3.25");

            menuItems.Add(sizes);
            menuItems.Add(dips);

            OrderPopup op = new OrderPopup(orderSummery, "Garlic Bread", menuItems, utilityGrid, subtotalLabel, taxLabel, totalLabel, preTotalLabel, price);

            StarterFrame.Children.Add(op);
        }
示例#3
0
        private void ConfirmBeerOrder_Click(object sender, RoutedEventArgs e)
        {
            List <String> domestic  = new List <String>();
            List <String> import    = new List <String>();
            List <String> specialty = new List <String>();

            List <List <String> > menuItems = new List <List <String> >();

            domestic.Add("RadioButton");
            domestic.Add("Domestic");
            domestic.Add("Budweiser");
            domestic.Add("Bud Light");
            domestic.Add("Coors Light");
            domestic.Add("Miller Lite");
            domestic.Add("Corona");

            /*
             * import.Add("CheckBox");
             * import.Add("Import + $1.00");
             * import.Add("Guinness");
             * import.Add("Heineken");
             * import.Add("Stella Artois");
             * import.Add("Modelo Negra");
             */

            menuItems.Add(domestic);
            //menuItems.Add(import);
            OrderPopup op = new OrderPopup(orderSummery, "Beer", menuItems, utilityGrid, subtotalLabel, taxLabel, totalLabel, preTotalLabel, price);

            DrinkFrame.Children.Add(op);
            confirmBeer.IsOpen     = false;
            utilityGrid.Visibility = System.Windows.Visibility.Collapsed;
            takePhoto();
        }
示例#4
0
        private void OkSendOrder_Click(object sender, RoutedEventArgs e)
        {
            OrderPopup op = new OrderPopup();

            newPrice = op.getTotalPrice();
            //MessageBox.Show(newPrice.ToString());

            LastScreen myLastScreen = new LastScreen(newPrice);

            this.NavigationService.Navigate(myLastScreen);
        }
示例#5
0
        private void sendOrder_Click(object sender, RoutedEventArgs e)
        {
            OrderPopup op = new OrderPopup();

            emptyPrice = op.getTotalPrice();
            if (emptyPrice == 0.0)
            {
                orderEmpty.IsOpen = true;
            }

            else
            {
                popUpSendOrder.IsOpen  = true;
                utilityGrid.Visibility = System.Windows.Visibility.Visible;
            }
        }
示例#6
0
        private void AddChickenWings_Click(object sender, EventArgs e)
        {
            // create list of expanders
            // split all expanders into their own list of strings
            // first item is content type (follow same name, it uses string comparison)
            //  second item is header name (don't use whitespaces?)

            List <String> sizes    = new List <String>();
            List <String> flavours = new List <String>();
            List <String> dips     = new List <String>();

            List <List <String> > menuItems = new List <List <String> >();

            sizes.Add("RadioButton");
            sizes.Add("Size");
            sizes.Add("Starter Size  $12.99");
            sizes.Add("Double Order  $23.00");

            flavours.Add("RadioButton");
            flavours.Add("Flavour");
            flavours.Add("Plain");
            flavours.Add("Medium");
            flavours.Add("Mild");
            flavours.Add("Hot");
            flavours.Add("BBQ");
            flavours.Add("Thai Chili");
            flavours.Add("Honey Garlic");
            flavours.Add("Salt And Pepper");
            flavours.Add("Memphis Hot Sauce");

            dips.Add("CheckBox");
            dips.Add("Dips");
            dips.Add("Blue Cheese Dip");
            dips.Add("Chipotle Caesar Dip");
            dips.Add("Ranch Dip");
            dips.Add("Creamy Garlic Dip");
            dips.Add("Cactus Dip");

            menuItems.Add(sizes);
            menuItems.Add(flavours);
            menuItems.Add(dips);

            OrderPopup op = new OrderPopup(orderSummery, "Chicken Wings", menuItems, utilityGrid, subtotalLabel, taxLabel, totalLabel, preTotalLabel, price);

            StarterFrame.Children.Add(op);
        }
示例#7
0
        private void AddPorkRibs_Click(object sender, EventArgs e)
        {
            List <String> sizes  = new List <String>();
            List <String> salads = new List <String>();
            List <String> sides  = new List <String>();
            List <String> sauces = new List <String>();


            List <List <String> > menuItems = new List <List <String> >();

            sizes.Add("RadioButton");
            sizes.Add("Size");
            sizes.Add("Half Rack $19.00");
            sizes.Add("Full Rack $26.00");

            sauces.Add("RadioButton");
            sauces.Add("Sauces");
            sauces.Add("BBQ sauce");
            sauces.Add("Honey garlic sauce");
            sauces.Add("Signature sauce");

            salads.Add("RadioButton");
            salads.Add("Add a starter salad?");
            salads.Add("Garden Salad + $4.00");
            salads.Add("Caesar Salad (now with bacon) + $4.00");
            salads.Add("Mediterranean Salad + $5.50");

            sides.Add("RadioButton");
            sides.Add("Sides");
            sides.Add("Fries");
            sides.Add("Garlic Mashed Potatoes");
            sides.Add("Loaded Mini Baked Potatoes");
            sides.Add("Cactus Cut Potatoes +$3.00");
            sides.Add("Seasonal Vegetables");
            sides.Add("Fries");

            menuItems.Add(sizes);
            menuItems.Add(sauces);
            menuItems.Add(salads);
            menuItems.Add(sides);

            OrderPopup op = new OrderPopup(orderSummery, "Pork Back Ribs", menuItems, utilityGrid, subtotalLabel, taxLabel, totalLabel, preTotalLabel, price);

            MainsFrame.Children.Add(op);
        }
示例#8
0
        private void AddPestoChicken_Click(object sender, EventArgs e)
        {
            // create list of expanders
            // split all expanders into their own list of strings
            // first item is content type (follow same name, it uses string comparison)
            //  second item is header name (don't use whitespaces?)

            List <String> cheese = new List <String>();
            List <String> noodle = new List <String>();
            List <String> extra  = new List <String>();


            List <List <String> > menuItems = new List <List <String> >();

            cheese.Add("RadioButton");
            cheese.Add("Baked with cheese?");
            cheese.Add("No $12.99");
            cheese.Add("Yes $15.99");

            noodle.Add("RadioButton");
            noodle.Add("Noodle");
            noodle.Add("Fettuccini");
            noodle.Add("Penne");
            noodle.Add("Spaghetti");
            noodle.Add("GlutenWise Fussili + $2.00");

            extra.Add("CheckBox");
            extra.Add("Extra Add");
            extra.Add("Bacon + $2.30");
            extra.Add("Diced Chicken + $2.30");
            extra.Add("Shrimp + $2.60");
            extra.Add("Fresh Mushrooms + $2.10");
            extra.Add("Green Peppers + $2.10");
            extra.Add("Onion + $2.10");

            menuItems.Add(cheese);
            menuItems.Add(noodle);
            menuItems.Add(extra);


            OrderPopup op = new OrderPopup(orderSummery, "Pesto Chicken Penne", menuItems, utilityGrid, subtotalLabel, taxLabel, totalLabel, preTotalLabel, price);

            PastaFrame.Children.Add(op);
        }
示例#9
0
        private void AddBostonRoyal_Click(object sender, EventArgs e)
        {
            // create list of expanders
            // split all expanders into their own list of strings
            // first item is content type (follow same name, it uses string comparison)
            //  second item is header name (don't use whitespaces?)

            List <String> crust   = new List <String>();
            List <String> sizes   = new List <String>();
            List <String> dips    = new List <String>();
            List <String> cheese  = new List <String>();
            List <String> veggies = new List <String>();
            List <String> meat    = new List <String>();

            List <List <String> > menuItems = new List <List <String> >();


            crust.Add("RadioButton");
            crust.Add("Crust");
            crust.Add("BP's Original Crust");

            sizes.Add("RadioButton");
            sizes.Add("Size");
            sizes.Add("8\" Indy + $13.00");
            sizes.Add("10\" Small + $18.00");
            sizes.Add("13\" Medium + $28.00");
            sizes.Add("15\" Large + $32.50");

            cheese.Add("CheckBox");
            cheese.Add("Cheese");
            cheese.Add("Cheddar + $2.30");
            cheese.Add("Feta + $2.30");
            cheese.Add("Italian Cheese Blend + $2.30");
            cheese.Add("Pizza Mozzarella + $2.30");

            meat.Add("CheckBox");
            meat.Add("Meat");
            meat.Add("Chicken + $2.30");
            meat.Add("Salami + $2.30");
            meat.Add("Pepperoni + $2.30");
            meat.Add("Ground Beef + $2.30");
            meat.Add("Bacon + $2.30");

            veggies.Add("CheckBox");
            veggies.Add("Veggies");
            veggies.Add("Red Onion + $2.10");
            veggies.Add("Peppers + $2.10");
            veggies.Add("Black Olive + $2.10");
            veggies.Add("Mushroom + $2.10");
            veggies.Add("Tomatoes + $2.10");
            veggies.Add("Pineapple + $2.10");

            dips.Add("CheckBox");
            dips.Add("Dips");
            dips.Add("Blue Cheese Dip + $2.50");
            dips.Add("Chipotle Caesar Dip + $2.50");
            dips.Add("Ranch Dip + $2.50");
            dips.Add("Creamy Garlic Dip + $2.50");
            dips.Add("Cactus Dip + $2.50");

            menuItems.Add(crust);
            menuItems.Add(sizes);
            menuItems.Add(cheese);
            menuItems.Add(meat);
            menuItems.Add(veggies);
            menuItems.Add(dips);


            OrderPopup op = new OrderPopup(orderSummery, "Boston Royal", menuItems, utilityGrid, subtotalLabel, taxLabel, totalLabel, preTotalLabel, price);

            PizzaFrame.Children.Add(op);
        }