Esempio n. 1
0
 /// <summary>
 /// Removes the given ingredient from the entree
 /// </summary>
 private void HoldOnionClick(object sender, RoutedEventArgs e)
 {
     if (EntreeSelection.GetCurrentEntree(this) is Brontowurst b)
     {
         b.HoldOnion();
     }
 }
 /// <summary>
 /// Removes the given ingredient from the entree
 /// </summary>
 private void HoldMustardClick(object sender, RoutedEventArgs e)
 {
     if (EntreeSelection.GetCurrentEntree(this) is SteakosaurusBurger b)
     {
         b.HoldMustard();
     }
 }
 /// <summary>
 /// Adds a nugget to the entree
 /// </summary>
 private void AddNuggetClick(object sender, RoutedEventArgs e)
 {
     if (EntreeSelection.GetCurrentEntree(this) is DinoNuggets b)
     {
         b.AddNugget();
     }
 }
Esempio n. 4
0
 /// <summary>
 /// Removes the given ingredient from the entree
 /// </summary>
 private void HoldCheeseClick(object sender, RoutedEventArgs e)
 {
     if (EntreeSelection.GetCurrentEntree(this) is VelociWrap b)
     {
         b.HoldCheese();
     }
 }
        /// <summary>
        /// Button to customize the entree is clicked
        /// </summary>
        public void EntreeClicked(object sender, RoutedEventArgs args)
        {
            Page p = EntreeSelection.GetCustomizationPage(GetCurrentCombo().Entree);

            if (p != null)
            {
                NavigationService.Navigate(p);
            }
        }
        /// <summary>
        /// Instantiates the MainWindow
        /// </summary>
        public MainWindow()
        {
            InitializeComponent();

            selectionMenu   = new SelectionMenu(this);
            entreeSelection = new EntreeSelection(this);
            sideSelection   = new SideSelection(this);
            drinkSelection  = new DrinkSelection(this);
            customizeMenu   = new CustomizeItem(this);

            windowControl.Content = selectionMenu;
        }
        /// <summary>
        /// Navigates to the desired window
        /// </summary>
        /// <param name="sender"> sends where it was clicked</param>
        /// <param name="e">and the event argument</param>
        private void Button_Click1(object sender, RoutedEventArgs e)
        {
            EntreeSelection s = new EntreeSelection();

            NavigationService.Navigate(s);
        }