public void ClickBrontowurst(object sender, RoutedEventArgs e) { en = new Brontowurst(); NavigationService.Navigate(new MenuCategorySelection()); }
/// <summary> /// begin the entree page when and add page /// </summary> /// <param name="entree"></param> public EntreeSelection(Entree entree) { InitializeComponent(); this.entree = entree; }
private void BrontoClick(object sender, RoutedEventArgs e) { entree = new Brontowurst(); AddEntree(); NavigationService.Navigate(new EntreeCustomization(entree)); }
/// <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(); }
/// <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(); }
public void ClickPterodactyl(object sender, RoutedEventArgs e) { en = new PterodactylWings(); NavigationService.Navigate(new MenuCategorySelection()); }
public void ClickTrex(object sender, RoutedEventArgs e) { en = new TRexKingBurger(); NavigationService.Navigate(new MenuCategorySelection()); }
private void WrapClick(object sender, RoutedEventArgs e) { entree = new VelociWrap(); AddEntree(); NavigationService.Navigate(new EntreeCustomization(entree)); }
public ComboSelection(Entree entree) { InitializeComponent(); this.Entree = entree; }
private void SteakClick(object sender, RoutedEventArgs e) { entree = new SteakosaurusBurger(); AddEntree(); NavigationService.Navigate(new EntreeCustomization(entree)); }
private void TRexClick(object sender, RoutedEventArgs e) { entree = new TRexKingBurger(); AddEntree(); NavigationService.Navigate(new EntreeCustomization(entree)); }
private void WingClick(object sender, RoutedEventArgs e) { entree = new PterodactylWings(); AddEntree(); NavigationService.Navigate(new MenuCategorySelection()); }
private void PrehistoricClick(object sender, RoutedEventArgs e) { entree = new PrehistoricPBJ(); AddEntree(); NavigationService.Navigate(new EntreeCustomization(entree)); }
private void DinoClick(object sender, RoutedEventArgs e) { entree = new DinoNuggets(); AddEntree(); NavigationService.Navigate(new EntreeCustomization(entree)); }
public void ClickDinoNuggets(object sender, RoutedEventArgs e) { en = new DinoNuggets(); NavigationService.Navigate(new MenuCategorySelection()); }
/// <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())); }
public void ClickPrehistoric(object sender, RoutedEventArgs e) { en = new PrehistoricPBJ(); NavigationService.Navigate(new MenuCategorySelection()); }
public EntreeSelection(Entree e) { InitializeComponent(); entree = e; }
public void ClickSteakosarus(object sender, RoutedEventArgs e) { en = new SteakosaurusBurger(); NavigationService.Navigate(new MenuCategorySelection()); }
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"; } }
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; } }
public EntreeSelection(Entree entree, bool combo) { InitializeComponent(); this.entree = entree; this.combo = combo; }
public EntreeSelection(Entree entree) { _entree = entree; InitializeComponent(); }
/// <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; }
/// <summary> /// constuctor for an entree /// </summary> /// <param name="entree"></param> public SelectEntree(Entree entree) { InitializeComponent(); this.Entree = entree; }
public EntreesPage(Entree e) { InitializeComponent(); entree = e; }
public EntreeCustomize(Entree entree) { InitializeComponent(); this.entree = entree; EvaluateButtons(); }