public OrderCollectionViewModel(IEventAggregator eventAggregator, IOrderViewModelFactory orderViewModelFactory, IBus bus, INode node)
 {
     _eventAggregator = eventAggregator;
     _orderViewModelFactory = orderViewModelFactory;
     Orders = new ObservableCollection<IOrderViewModel>();
     _bus = bus;
     _node = node;
     WireUpOrderEvents();
     WireUpMessageBus();
 }
Ejemplo n.º 2
0
 public OrderCollectionViewModel(IEventAggregator eventAggregator, IOrderViewModelFactory orderViewModelFactory, IBus bus, INode node)
 {
     _eventAggregator       = eventAggregator;
     _orderViewModelFactory = orderViewModelFactory;
     Orders = new ObservableCollection <IOrderViewModel>();
     _bus   = bus;
     _node  = node;
     WireUpOrderEvents();
     WireUpMessageBus();
 }
Ejemplo n.º 3
0
        public MainWindowViewModel(IOrderRepository orderRepository, IOrderViewModelFactory orderViewModelFactory, OrderHandler orderHandler,
                                   IAddOrderViewModelFactory addOrderViewModelFactory)
        {
            _orderRepository          = orderRepository;
            _orderViewModelFactory    = orderViewModelFactory;
            _orderHandler             = orderHandler;
            _addOrderViewModelFactory = addOrderViewModelFactory;

            InitCommands();
        }
Ejemplo n.º 4
0
        public MainWindowViewModel(IOrderDataModel orderDataModel, IAccessViewModel accessViewModel, IChooseTabelViewModel chooseTabelViewModel, IOrderViewModelFactory orderViewModelFactory)
        {
            _accessViewModel = accessViewModel;
            _accessViewModel.SetMainWindowReference(this);
            _chooseTabelViewModel  = chooseTabelViewModel;
            _orderViewModelFactory = orderViewModelFactory;
            _orderViewModelFactory.SetMainWindowReference(this);
            _orderDataModel = orderDataModel;

            ActivateItem(_accessViewModel);
        }
Ejemplo n.º 5
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);
        }
Ejemplo n.º 6
0
 public OrdersViewModel(Customer model, IOrderViewModelFactory orderViewModelFactory)
 {
     Orders = new ObservableCollection <OrderViewModel>(model.Orders.Select(o => orderViewModelFactory.CreateInstance(o, model)));
 }
        public OrdersViewModel(Model.Customer model, IToolManager toolManager, IOrderViewModelFactory orderViewModelFactory)

        {
            Orders = new ObservableCollection<OrderViewModel>(model.Orders.Select(o => orderViewModelFactory.CreateInstance(o, model)));
        }
Ejemplo n.º 8
0
 public AddOrderViewModelFactory(IUnityContainer container, IOrderViewModelFactory orderViewModelFactory)
 {
     _container             = container;
     _orderViewModelFactory = orderViewModelFactory;
 }