public ManagePrintJobsWindow(ManagePrintJobsViewModel viewModel, IHightlightColorRegistration hightlightColorRegistration)
        {
            DataContext = viewModel;
            InitializeComponent();
            hightlightColorRegistration.RegisterHighlightColorResource(this);

            // dummy reference to force GongSolutions.Wpf.DragDrop to be copied to bin folder
            var t = typeof(GongSolutions.Wpf.DragDrop.DragDrop);
        }
Beispiel #2
0
 public MainShell(MainShellViewModel vm, IHightlightColorRegistration hightlightColorRegistration, IUpdateAssistant updateAssistant)
 {
     _mainShellViewModel = vm;
     UpdateAssistant     = updateAssistant;
     DataContext         = _mainShellViewModel;
     _mainShellViewModel.Init(Close);
     InitializeComponent();
     hightlightColorRegistration.RegisterHighlightColorResource(this);
 }
Beispiel #3
0
 public MainShell(MainShellViewModel vm, IHightlightColorRegistration hightlightColorRegistration, IUpdateAssistant updateAssistant, IEventAggregator eventAggregator, IDispatcher dispatcher)
 {
     _eventAggregator = eventAggregator;
     _dispatcher      = dispatcher;
     DataContext      = vm;
     UpdateAssistant  = updateAssistant;
     InitializeComponent();
     hightlightColorRegistration.RegisterHighlightColorResource(this);
 }
Beispiel #4
0
 public MainShell(MainShellViewModel vm, IHightlightColorRegistration hightlightColorRegistration, IUpdateHelper updateHelper, IEventAggregator eventAggregator, IDispatcher dispatcher)
 {
     _eventAggregator = eventAggregator;
     _dispatcher      = dispatcher;
     DataContext      = vm;
     UpdateHelper     = updateHelper;
     InitializeComponent();
     vm.Init(Close);
     hightlightColorRegistration.RegisterHighlightColorResource(this);
     TransposerHelper.Register(this, vm);
 }
Beispiel #5
0
        public PrintJobShell(IRegionManager regionManager, IInteractiveWorkflowManagerFactory interactiveWorkflowManagerFactory, PrintJobShellViewModel viewModel,
                             IHightlightColorRegistration hightlightColorRegistration, ICurrentSettingsProvider currentSettingsProvider, ViewCustomization viewCustomization)
        {
            DataContext = viewModel;
            InitializeComponent();
            InteractiveWorkflowManager = interactiveWorkflowManagerFactory.CreateInteractiveWorkflowManager(regionManager, currentSettingsProvider);
            Closing += (sender, args) => InteractiveWorkflowManager.Cancel = true;
            hightlightColorRegistration.RegisterHighlightColorResource(this);

            if (viewCustomization.CustomizationEnabled)
            {
                Title = viewCustomization.PrintJobWindowCaption;
            }
        }
Beispiel #6
0
        public MainShell(MainShellViewModel vm, IHightlightColorRegistration hightlightColorRegistration, IUpdateAssistant updateAssistant, ViewCustomization viewCustomization)
        {
            _mainShellViewModel = vm;
            UpdateAssistant     = updateAssistant;
            DataContext         = _mainShellViewModel;
            _mainShellViewModel.Init(Close);
            InitializeComponent();
            hightlightColorRegistration.RegisterHighlightColorResource(this);

            if (viewCustomization.ApplyCustomization)
            {
                Title = Title + " " + viewCustomization.MainWindowText;
            }
        }
 public InteractionHostWindow(IInteractionRequest interactionRequest, IHightlightColorRegistration hightlightColorRegistration)
 {
     InteractionRequest = interactionRequest;
     InitializeComponent();
     hightlightColorRegistration.RegisterHighlightColorResource(this);
 }