예제 #1
0
 private void HoldLettuceClicked(object sender, RoutedEventArgs args)
 {
     wrap?.HoldLettuce();
     if (this.combo != null)
     {
         if (this.combo.Entree is VelociWrap v)
         {
             v.HoldLettuce();
         }
     }
 }
예제 #2
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.VelociWrap b = (DinoDiner.Menu.VelociWrap)Combo.Entree;
             b.HoldLettuce();
             Combo.Entree = b;
             CollectionViewSource.GetDefaultView(order.Items).Refresh();
         }
     }
 }