Ejemplo n.º 1
0
 public void ClickBrontowurst(object sender, RoutedEventArgs e)
 {
     en = new Brontowurst();
     NavigationService.Navigate(new MenuCategorySelection());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// begin the entree page when and add page
 /// </summary>
 /// <param name="entree"></param>
 public EntreeSelection(Entree entree)
 {
     InitializeComponent();
     this.entree = entree;
 }
Ejemplo n.º 3
0
 private void BrontoClick(object sender, RoutedEventArgs e)
 {
     entree = new Brontowurst();
     AddEntree();
     NavigationService.Navigate(new EntreeCustomization(entree));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Selects pterodactyl wings as the entree.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 private void SelectPterodactylWings(object sender, RoutedEventArgs args)
 {
     entree = new PterodactylWings();
     SetUpEntreeSelection();
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Constructor that gets the entree being modified
 /// </summary>
 /// <param name="entree">Entree being modified</param>
 public CustomizeEntree(Entree entree)
 {
     this.entree = entree;
     InitializeComponent();
     SetButtons();
 }
Ejemplo n.º 6
0
 public void ClickPterodactyl(object sender, RoutedEventArgs e)
 {
     en = new PterodactylWings();
     NavigationService.Navigate(new MenuCategorySelection());
 }
Ejemplo n.º 7
0
 public void ClickTrex(object sender, RoutedEventArgs e)
 {
     en = new TRexKingBurger();
     NavigationService.Navigate(new MenuCategorySelection());
 }
Ejemplo n.º 8
0
 private void WrapClick(object sender, RoutedEventArgs e)
 {
     entree = new VelociWrap();
     AddEntree();
     NavigationService.Navigate(new EntreeCustomization(entree));
 }
Ejemplo n.º 9
0
 public ComboSelection(Entree entree)
 {
     InitializeComponent();
     this.Entree = entree;
 }
Ejemplo n.º 10
0
 private void SteakClick(object sender, RoutedEventArgs e)
 {
     entree = new SteakosaurusBurger();
     AddEntree();
     NavigationService.Navigate(new EntreeCustomization(entree));
 }
Ejemplo n.º 11
0
 private void TRexClick(object sender, RoutedEventArgs e)
 {
     entree = new TRexKingBurger();
     AddEntree();
     NavigationService.Navigate(new EntreeCustomization(entree));
 }
Ejemplo n.º 12
0
 private void WingClick(object sender, RoutedEventArgs e)
 {
     entree = new PterodactylWings();
     AddEntree();
     NavigationService.Navigate(new MenuCategorySelection());
 }
Ejemplo n.º 13
0
 private void PrehistoricClick(object sender, RoutedEventArgs e)
 {
     entree = new PrehistoricPBJ();
     AddEntree();
     NavigationService.Navigate(new EntreeCustomization(entree));
 }
Ejemplo n.º 14
0
 private void DinoClick(object sender, RoutedEventArgs e)
 {
     entree = new DinoNuggets();
     AddEntree();
     NavigationService.Navigate(new EntreeCustomization(entree));
 }
Ejemplo n.º 15
0
 public void ClickDinoNuggets(object sender, RoutedEventArgs e)
 {
     en = new DinoNuggets();
     NavigationService.Navigate(new MenuCategorySelection());
 }
Ejemplo n.º 16
0
 /// <summary>
 /// Navigates to the entree customization screen with the selected entree
 /// </summary>
 /// <param name="entree"></param>
 private void CustomizeSelectedEntree(Entree entree)
 {
     NavigationService.Navigate(new CustomizeEntree(entree, new MenuCategorySelection()));
 }
Ejemplo n.º 17
0
 public void ClickPrehistoric(object sender, RoutedEventArgs e)
 {
     en = new PrehistoricPBJ();
     NavigationService.Navigate(new MenuCategorySelection());
 }
Ejemplo n.º 18
0
 public EntreeSelection(Entree e)
 {
     InitializeComponent();
     entree = e;
 }
Ejemplo n.º 19
0
 public void ClickSteakosarus(object sender, RoutedEventArgs e)
 {
     en = new SteakosaurusBurger();
     NavigationService.Navigate(new MenuCategorySelection());
 }
Ejemplo n.º 20
0
        public void LoadButtonsAndContent(Entree e)
        {
            b1.Visibility = Visibility.Collapsed;
            b2.Visibility = Visibility.Collapsed;
            b3.Visibility = Visibility.Collapsed;
            b4.Visibility = Visibility.Collapsed;
            b5.Visibility = Visibility.Collapsed;
            b6.Visibility = Visibility.Collapsed;
            b7.Visibility = Visibility.Collapsed;
            b8.Visibility = Visibility.Collapsed;

            if (e is Brontowurst)
            {
                b1.Visibility = Visibility.Visible;
                b2.Visibility = Visibility.Visible;
                b3.Visibility = Visibility.Visible;
                b1.Content    = "Bun";
                b2.Content    = "Onion";
                b3.Content    = "Peppers";
            }
            else if (e is SteakosaurusBurger)
            {
                b1.Visibility = Visibility.Visible;
                b3.Visibility = Visibility.Visible;
                b4.Visibility = Visibility.Visible;
                b5.Visibility = Visibility.Visible;
                b1.Content    = "Bun";
                b3.Content    = "Pickle";
                b4.Content    = "Ketchup";
                b5.Content    = "Mustard";
            }
            else if (e is VelociWrap)
            {
                b1.Visibility = Visibility.Visible;
                b2.Visibility = Visibility.Visible;
                b3.Visibility = Visibility.Visible;
                b1.Content    = "Dressing";
                b2.Content    = "Cheese";
                b3.Content    = "Lettuce";
            }
            else if (e is DinoNuggets)
            {
                b1.Visibility = Visibility.Visible;
                b2.Visibility = Visibility.Visible;
                b1.Content    = "Add Nuggets";
                b2.Content    = "Remove Nuggets";
            }
            else if (e is PrehistoricPBJ)
            {
                b1.Visibility = Visibility.Visible;
                b2.Visibility = Visibility.Visible;
                b1.Content    = "Peanut Butter";
                b2.Content    = "Jelly";
            }
            else if (e is TRexKingBurger)
            {
                b1.Visibility = Visibility.Visible;
                b2.Visibility = Visibility.Visible;
                b3.Visibility = Visibility.Visible;
                b4.Visibility = Visibility.Visible;
                b5.Visibility = Visibility.Visible;
                b6.Visibility = Visibility.Visible;
                b7.Visibility = Visibility.Visible;
                b8.Visibility = Visibility.Visible;
                b1.Content    = "Bun";
                b2.Content    = "Onion";
                b3.Content    = "Pickle";
                b4.Content    = "Ketchup";
                b5.Content    = "Mustard";
                b6.Content    = "Mayo";
                b7.Content    = "Tomato";
                b8.Content    = "Lettuce";
            }
        }
Ejemplo n.º 21
0
 public void ClickVelociwrap(object sender, RoutedEventArgs e)
 {
     en = new VelociWrap();
     NavigationService.Navigate(new MenuCategorySelection());
 }
 /// <summary>
 /// The entree constructor for the class
 /// </summary>
 /// <param name="entree">The entree that is being modified</param>
 public EntreeCustomization(Entree entree)
 {
     InitializeComponent();
     this.entree                  = entree;
     buttonBun.IsEnabled          = false;
     buttonDressing.IsEnabled     = false;
     buttonKetchup.IsEnabled      = false;
     buttonJelly.IsEnabled        = false;
     buttonLettuce.IsEnabled      = false;
     buttonMayo.IsEnabled         = false;
     buttonMustard.IsEnabled      = false;
     buttonNuggets.IsEnabled      = false;
     buttonOnion.IsEnabled        = false;
     buttonPeanutButter.IsEnabled = false;
     buttonPeppers.IsEnabled      = false;
     buttonPickle.IsEnabled       = false;
     buttonTomato.IsEnabled       = false;
     buttonCheese.IsEnabled       = false;
     if (entree is Brontowurst bron)
     {
         customName.Text         = "Brontowurst";
         buttonBun.IsEnabled     = true;
         buttonOnion.IsEnabled   = true;
         buttonPeppers.IsEnabled = true;
         //bron.HoldBun();
         //bron.HoldOnion();
         //bron.HoldPeppers();
         entree = bron;
     }
     else if (entree is DinoNuggets nug)
     {
         customName.Text         = "Dino-Nuggets";
         buttonNuggets.IsEnabled = true;
         //nug.AddNugget();
         entree = nug;
     }
     else if (entree is PrehistoricPBJ pbj)
     {
         customName.Text              = "Prehistoric PB&J";
         buttonJelly.IsEnabled        = true;
         buttonPeanutButter.IsEnabled = true;
         //pbj.HoldJelly();
         //pbj.HoldPeanutButter();
         entree = pbj;
     }
     else if (entree is PterodactylWings wings)
     {
         customName.Text = "Pterodactyl Wings";
         entree          = wings;
     }
     else if (entree is SteakosaurusBurger sb)
     {
         customName.Text         = "Steakosaurus Burger";
         buttonBun.IsEnabled     = true;
         buttonKetchup.IsEnabled = true;
         buttonMustard.IsEnabled = true;
         buttonPickle.IsEnabled  = true;
         //sb.HoldBun();
         //sb.HoldKetchup();
         //sb.HoldMustard();
         //sb.HoldPickle();
         entree = sb;
     }
     else if (entree is TRexKingBurger kb)
     {
         customName.Text         = "T-Rex King Burger";
         buttonBun.IsEnabled     = true;
         buttonKetchup.IsEnabled = true;
         buttonMustard.IsEnabled = true;
         buttonPickle.IsEnabled  = true;
         buttonLettuce.IsEnabled = true;
         buttonMayo.IsEnabled    = true;
         buttonOnion.IsEnabled   = true;
         buttonTomato.IsEnabled  = true;
         //kb.HoldBun();
         //kb.HoldKetchup();
         //kb.HoldLettuce();
         //kb.HoldMayo();
         //kb.HoldMustard();
         //kb.HoldOnion();
         //kb.HoldPickle();
         //kb.HoldTomato();
         entree = kb;
     }
     else if (entree is VelociWrap wrap)
     {
         customName.Text          = "Veloci-Wrap";
         buttonCheese.IsEnabled   = true;
         buttonDressing.IsEnabled = true;
         buttonLettuce.IsEnabled  = true;
         //wrap.HoldCheese();
         //wrap.HoldDressing();
         //wrap.HoldLettuce();
         entree = wrap;
     }
     if (DataContext is Order order)
     {
         //CollectionViewSource.GetDefaultView(order.Items).CurrentChanged += OnCurrentChanged;
     }
 }
Ejemplo n.º 23
0
 public EntreeSelection(Entree entree, bool combo)
 {
     InitializeComponent();
     this.entree = entree;
     this.combo  = combo;
 }
Ejemplo n.º 24
0
 public EntreeSelection(Entree entree)
 {
     _entree = entree;
     InitializeComponent();
 }
Ejemplo n.º 25
0
 /// <summary>
 /// Sets the entree of the combo,
 /// </summary>
 /// <param name="entree">The entree to set as the combo's entree.</param>
 public void SetEntree(Entree entree)
 {
     _combo.Entree = entree;
 }
Ejemplo n.º 26
0
 /// <summary>
 /// constuctor for an entree
 /// </summary>
 /// <param name="entree"></param>
 public SelectEntree(Entree entree)
 {
     InitializeComponent();
     this.Entree = entree;
 }
Ejemplo n.º 27
0
 public EntreesPage(Entree e)
 {
     InitializeComponent();
     entree = e;
 }
Ejemplo n.º 28
0
 public EntreeCustomize(Entree entree)
 {
     InitializeComponent();
     this.entree = entree;
     EvaluateButtons();
 }