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