Ejemplo n.º 1
0
 public OrderViewModel()
 {
     AddItemCommand = new DelegateCommand<MenuItem>(AddItem);
     AddOrderCommand = new DelegateCommand<string>(AddOrder);
 }
 public OrderViewModel()
 {
     AddToSelectionCommand = new DelegateCommand<string>(AddSelectionToOrder, CanExecuteSelectionToOrder);
     SubmitOrderCommand = new DelegateCommand<string>(SubmitOrder, CanExecuteSubmitOrder);
 }
Ejemplo n.º 3
0
 public ExpediteViewModel()
 {
     DeleteOrderCommand    = new DelegateCommand <int>(DeleteOrderExecute, DeleteOrderCanExecute);
     ClearAllOrdersCommand = new DelegateCommand <string>(ClearAllOrdersExecute, ClearAllOrdersCanExecute);
 }
Ejemplo n.º 4
0
 public OrderViewModel()
 {
     AddMenuItemCommand = new DelegateCommand(AddMenuItem);
     SubmitOrderCommand = new DelegateCommand(SubmitOrder);
     this.CurrentlySelectedMenuItems = new ObservableCollection<MenuItem>();
 }
Ejemplo n.º 5
0
 public ExpediteViewModel()
 {
     DeleteOrderCommand = new DelegateCommand<Order>(DeleteOrder);
     DeleteAllOrdersCommand = new DelegateCommand<object>(DeleteAllOrders);
 }