protected override void OnSourceInitialized(EventArgs e)
        {
            base.OnSourceInitialized(e);

            IsWindowPlacementReliable = true; // This must be set before loading WindowPlacement.

            new WindowPlacement().Load(this, !CommandLine.MakesWindowStateMinimized);

            _mainWindowViewModel = this.DataContext as MainWindowViewModel;
            if (_mainWindowViewModel == null)
                return;

            if (CommandLine.StartsAutoCheck &&
                _mainWindowViewModel.CheckCopyAutoCommand.CanExecute())
                _mainWindowViewModel.CheckCopyAutoCommand.Execute();

            SetDestinationColorProfile(this.WindowHandler.ColorProfilePath);
            this.WindowHandler.ColorProfileChanged += (sender_, e_) => SetDestinationColorProfile(e_.NewPath);
        }
Пример #2
0
		public Operation(MainWindowViewModel mainWindowViewModelInstance)
		{
			MainWindowViewModelInstance = mainWindowViewModelInstance;
		}