public MainWindowViewCommands(MainWindow window, MainWindowViewModel viewModel)
        {
            Window = window;
            ViewModel = viewModel;
            ViewModel.PropertyChanged += OnViewModelPropertyChanged;
            OpenCommand = new DelegateCommand(OnOpen); // Don't give a delegate for if the command can execute, the menu item IsEnabled seems buggy when that's done...just manually bind IsEnabled
            QuickSaveAsPngCommand = new DelegateCommand(OnQuickSaveAsPng);
            ExitCommand = new DelegateCommand(OnExit);
            ShowAboutCommand = new DelegateCommand(OnShowAbout);

            RefreshCanOpen();
            RefreshCanQuickSaveAsPng();
            RefreshCanExit();
            RefreshCanShowAbout();
        }
 public MainWindow()
 {
     ViewModel = new MainWindowViewModel();
     ViewCommands = new MainWindowViewCommands(this, ViewModel);
     InitializeComponent();
 }