Exemplo n.º 1
0
        public ModifierModule(IRegionManager regionManager, IUserService userService,
            TicketNoteEditorView ticketNoteEditorView, TicketNoteEditorViewModel ticketNoteEditorViewModel,
            TicketTagEditorView ticketTagEditorView, TicketTagEditorViewModel ticketTagEditorViewModel,
            OrderTagGroupEditorView selectedOrdersView, OrderTagGroupEditorViewModel selectedOrdersViewModel,
            AutomationCommandSelectorView automationCommandSelectorView, AutomationCommandSelectorViewModel automationCommandSelectorViewModel,
            ProductTimerEditorView productTimerEditorView, ProductTimerEditorViewModel productTimerEditorViewModel)
        {
            _selectedOrdersView = selectedOrdersView;
            _selectedOrdersViewModel = selectedOrdersViewModel;
            _automationCommandSelectorView = automationCommandSelectorView;
            _productTimerEditorView = productTimerEditorView;
            _productTimerEditorViewModel = productTimerEditorViewModel;
            _ticketNoteEditorView = ticketNoteEditorView;
            _ticketNoteEditorViewModel = ticketNoteEditorViewModel;
            _ticketTagEditorView = ticketTagEditorView;
            _ticketTagEditorViewModel = ticketTagEditorViewModel;

            _regionManager = regionManager;

            EventServiceFactory.EventService.GetEvent<GenericEvent<SelectedOrdersData>>().Subscribe(OnSelectedOrdersDataEvent);
            EventServiceFactory.EventService.GetEvent<GenericEvent<EventAggregator>>().Subscribe(OnDisplayTicketDetailsScreen);
            EventServiceFactory.EventService.GetEvent<GenericEvent<TicketTagData>>().Subscribe(OnTicketTagDataSelected);
            EventServiceFactory.EventService.GetEvent<GenericEvent<Ticket>>().Subscribe(OnTicketEvent);
            EventServiceFactory.EventService.GetEvent<GenericEvent<AutomationCommand>>().Subscribe(OnAutomationCommandEvent);
        }
Exemplo n.º 2
0
        public ModifierModule(IRegionManager regionManager, IUserService userService,
                              TicketNoteEditorView ticketNoteEditorView, TicketNoteEditorViewModel ticketNoteEditorViewModel,
                              TicketTagEditorView ticketTagEditorView, TicketTagEditorViewModel ticketTagEditorViewModel,
                              OrderTagGroupEditorView selectedOrdersView, OrderTagGroupEditorViewModel selectedOrdersViewModel,
                              AutomationCommandSelectorView automationCommandSelectorView, AutomationCommandSelectorViewModel automationCommandSelectorViewModel,
                              AutomationCommandValueSelectorView automationCommandValueSelectorView, AutomationCommandValueSelectorViewModel automationCommandValueSelectorViewModel,
                              ProductTimerEditorView productTimerEditorView, ProductTimerEditorViewModel productTimerEditorViewModel,
                              TicketLogViewerView ticketLogViewerView, TicketLogViewerViewModel ticketLogViewerViewModel)
        {
            _selectedOrdersView                 = selectedOrdersView;
            _selectedOrdersViewModel            = selectedOrdersViewModel;
            _automationCommandSelectorView      = automationCommandSelectorView;
            _automationCommandSelectorViewModel = automationCommandSelectorViewModel;
            _automationCommandValueSelectorView = automationCommandValueSelectorView;
            _productTimerEditorView             = productTimerEditorView;
            _productTimerEditorViewModel        = productTimerEditorViewModel;
            _ticketLogViewerView                = ticketLogViewerView;
            _ticketLogViewerViewModel           = ticketLogViewerViewModel;
            _ticketNoteEditorView               = ticketNoteEditorView;
            _ticketNoteEditorViewModel          = ticketNoteEditorViewModel;
            _ticketTagEditorView                = ticketTagEditorView;
            _ticketTagEditorViewModel           = ticketTagEditorViewModel;

            _regionManager = regionManager;

            EventServiceFactory.EventService.GetEvent <GenericEvent <OperationRequest <SelectedOrdersData> > >().Subscribe(OnSelectedOrdersDataEvent);
            EventServiceFactory.EventService.GetEvent <GenericEvent <TicketTagData> >().Subscribe(OnTicketTagDataSelected);
            EventServiceFactory.EventService.GetEvent <GenericEvent <Ticket> >().Subscribe(OnTicketEvent);
            EventServiceFactory.EventService.GetEvent <GenericEvent <AutomationCommand> >().Subscribe(OnAutomationCommandEvent);
        }
 public OrderTagGroupEditorViewModel(IUserService userService, IApplicationState applicationState, ICacheService cacheService,
                                     AutomationCommandSelectorViewModel automationCommandSelectorViewModel)
 {
     _applicationState = applicationState;
     _cacheService     = cacheService;
     _automationCommandSelectorViewModel = automationCommandSelectorViewModel;
     ToggleRemoveModeCommand             = new CaptionCommand <string>(Resources.Remove, OnToggleRemoveMode);
     CloseCommand                   = new CaptionCommand <string>(Resources.Close, OnCloseCommandExecuted);
     PortionSelectedCommand         = new DelegateCommand <MenuItemPortion>(OnPortionSelected);
     GroupedOrderTagSelectedCommand = new DelegateCommand <GroupedOrderTagButtonViewModel>(OnGroupedOrderTagSelected);
     OrderTagSelectedCommand        = new DelegateCommand <OrderTagButtonViewModel>(OnOrderTagSelected);
     FreeTagSelectedCommand         = new DelegateCommand <OrderTagGroupViewModel>(OnFreeTagSelected);
     SelectedItemPortions           = new ObservableCollection <MenuItemPortion>();
     OrderTagGroups                 = new ObservableCollection <OrderTagGroupViewModel>();
     GroupedOrderTagGroups          = new ObservableCollection <GroupedOrderTagViewModel>();
 }
 public OrderTagGroupEditorViewModel(IUserService userService, IApplicationState applicationState, ICacheService cacheService,
     AutomationCommandSelectorViewModel automationCommandSelectorViewModel)
 {
     _applicationState = applicationState;
     _cacheService = cacheService;
     _automationCommandSelectorViewModel = automationCommandSelectorViewModel;
     ToggleRemoveModeCommand = new CaptionCommand<string>(Resources.Remove, OnToggleRemoveMode);
     CloseCommand = new CaptionCommand<string>(Resources.Close, OnCloseCommandExecuted);
     PortionSelectedCommand = new DelegateCommand<MenuItemPortion>(OnPortionSelected);
     GroupedOrderTagSelectedCommand = new DelegateCommand<GroupedOrderTagButtonViewModel>(OnGroupedOrderTagSelected);
     OrderTagSelectedCommand = new DelegateCommand<OrderTagButtonViewModel>(OnOrderTagSelected);
     FreeTagSelectedCommand = new DelegateCommand<OrderTagGroupViewModel>(OnFreeTagSelected);
     SelectedItemPortions = new ObservableCollection<MenuItemPortion>();
     OrderTagGroups = new ObservableCollection<OrderTagGroupViewModel>();
     GroupedOrderTagGroups = new ObservableCollection<GroupedOrderTagViewModel>();
 }
Exemplo n.º 5
0
 public AutomationCommandSelectorView(AutomationCommandSelectorViewModel viewModel)
 {
     DataContext = viewModel;
     InitializeComponent();
 }