private void HoldMustardClicked(object sender, RoutedEventArgs args)
 {
     Trex?.HoldMustard();
     if (this.combo != null)
     {
         if (this.combo.Entree is TRexKingBurger tb)
         {
             tb.HoldMustard();
         }
     }
 }
Beispiel #2
0
 public void HoldMustard(object sender, RoutedEventArgs e)
 {
     if (DataContext is Order order)
     {
         if (CollectionViewSource.GetDefaultView(order.Items).CurrentItem is DinoDiner.Menu.CretaceousCombo Combo)
         {
             DinoDiner.Menu.TRexKingBurger b = (DinoDiner.Menu.TRexKingBurger)Combo.Entree;
             b.HoldMustard();
             Combo.Entree = b;
             CollectionViewSource.GetDefaultView(order.Items).Refresh();
         }
     }
 }