Esempio n. 1
0
 public void HoldLettuce(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.HoldLettuce();
             Combo.Entree = b;
             CollectionViewSource.GetDefaultView(order.Items).Refresh();
         }
     }
 }
 public TRexCustomizer(DinoDiner.Menu.TRexKingBurger t)
 {
     this.Trex = t;
     InitializeComponent();
 }