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);
        }
예제 #2
0
 public ProductTimerEditorView(ProductTimerEditorViewModel viewModel)
 {
     DataContext = viewModel;
     InitializeComponent();
 }