Ejemplo n.º 1
0
 private void HoldKetchupClicked(object sender, RoutedEventArgs args)
 {
     Trex?.HoldKetchup();
     if (this.combo != null)
     {
         if (this.combo.Entree is TRexKingBurger tb)
         {
             tb.HoldKetchup();
         }
     }
 }
Ejemplo n.º 2
0
 public void HoldKetchup(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.HoldKetchup();
             Combo.Entree = b;
             CollectionViewSource.GetDefaultView(order.Items).Refresh();
         }
     }
 }