Beispiel #1
0
 public MainPOSViewModel()
 {
     CashCommand            = new DelegateCommand(OpenCashDialog);
     CreditCommand          = new DelegateCommand(OpenCreditDialog);
     SelectCustomerCommand  = new DelegateCommand(OpenCustomerDialog);
     OpenDrawerCommand      = new DelegateCommand(OpenDrawer);
     ExitCommand            = new DelegateCommand(ExitExecute);
     SuspendOrderCommand    = new DelegateCommand(SuspendOrder);
     SuspendedOrdersCommand = new DelegateCommand(OpenSuspendedOrdersDialog);
     SearchOrderCommand     = new DelegateCommand(SearchOrderDialog);
     DeleteRowCommand       = new DelegateCommand(DeleteRow, CanDeleteRow);
     ClearCommand           = new DelegateCommand(ClearOrder);
     MoreOptionCommand      = new DelegateCommand(MoreOptionExecute);
     CancelPaymentCommand   = new DelegateCommand <Payment>(CancelPayment);
     _eventAggregator       = Globals.get().EventAggregator;
     _eventAggregator.GetEvent <POSItemClick>().Subscribe(POSItemClickExecute);
     initOrder();
     CurrentMenu       = UnitOfWork.get().Menus.Get(1);
     CalcVM            = new CalculatorViewModel();
     dialogCoordinator = DialogCoordinator.Instance;
     SuspendedOrders   = new List <Order>();
 }
 public CreditDialogViewModel()
 {
     CalcVM        = new CalculatorViewModel();
     ManualCommand = new DelegateCommand(ManualExecute);
     AcceptCommand = new DelegateCommand(AcceptAcecute);
 }
 public SelectPersonDialogViewModel() : base()
 {
     CalcVM = new CalculatorViewModel();
 }