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