Exemplo n.º 1
0
        public MainWindowViewModel(IOrderNotyficator orderNotyficator,
                                   IWaiterDataModel waiterDataModel, IDialogLogin dialogLogin, IOrderViewModelFactory orderViewModelFactory, IConfirmDialogFactory confirmDialogFactory)
        {
            _orderViewModelFactory = orderViewModelFactory;
            _confirmDialogFactory  = confirmDialogFactory;
            _waiterDataModel       = waiterDataModel;
            orderNotyficator.SetTarget(this);

            _dialogLogin = dialogLogin;
            _dialogLogin.SetMainWindowReference(this);

            ActivateItem(_dialogLogin);
        }
        public WaiterManagerViewModel(IWaiterDataModel waiterDataModel)
        {
            _waiterDataModel = waiterDataModel;

            Waiters = new BindableCollection <UserContext>();
        }
Exemplo n.º 3
0
 public AddWaiterViewModel(IWaiterDataModel waiterDataModel, IWaiterManagerViewModel waiterManagerViewModel)
 {
     _waiterDataModel        = waiterDataModel;
     _waiterManagerViewModel = waiterManagerViewModel;
 }
Exemplo n.º 4
0
 public OrderViewModel(IWaiterDataModel waiterDataModel, Order order)
 {
     _waiterDataModel = waiterDataModel;
     _order = order;
     CanReady = true;
 }
 public AddWaiterViewModel(IWaiterDataModel waiterDataModel, IWaiterManagerViewModel waiterManagerViewModel)
 {
     _waiterDataModel = waiterDataModel;
     _waiterManagerViewModel = waiterManagerViewModel;
 }
 public OrderViewModelFactory(IWaiterDataModel waiterDataModel)
 {
     _waiterDataModel = waiterDataModel;
 }
Exemplo n.º 7
0
 public OrderViewModel(IWaiterDataModel waiterDataModel, Order order)
 {
     _waiterDataModel = waiterDataModel;
     _order           = order;
     CanReady         = true;
 }
Exemplo n.º 8
0
 public OrderViewModelFactory(IWaiterDataModel waiterDataModel)
 {
     _waiterDataModel = waiterDataModel;
 }
Exemplo n.º 9
0
 public LoginViewModel(IWaiterDataModel waiterDataModel)
 {
     _waiterDataModel = waiterDataModel;
 }
Exemplo n.º 10
0
 public LoginViewModel(IWaiterDataModel waiterDataModel)
 {
     _waiterDataModel = waiterDataModel;
 }