예제 #1
0
 public MainShell(MainShellViewModel vm, IHightlightColorRegistration hightlightColorRegistration, IUpdateAssistant updateAssistant)
 {
     _mainShellViewModel = vm;
     UpdateAssistant     = updateAssistant;
     DataContext         = _mainShellViewModel;
     _mainShellViewModel.Init(Close);
     InitializeComponent();
     hightlightColorRegistration.RegisterHighlightColorResource(this);
 }
예제 #2
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);
 }
예제 #3
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;
            }
        }