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