public ContextMenuActionsVM(WpfApplication application) { _application = application; ShowInstances = new DelegateCommand(_ => { var wnd = new View.InstancesList { DataContext = new { Items = _application.AllInstances } }; wnd.Show(); }); ShowMessages = new DelegateCommand(_ => { _application.ShowMessagesList(); }); ClearMessages = new DelegateCommand(_ => { _application.ClearMessagesList(); }); OpenSettings = new DelegateCommand(_ => { var wnd = new View.SettingsView { DataContext = new ViewModel.SettingsVM(_application) }; wnd.Show(); }); OpenAbout = new DelegateCommand(_ => { var wnd = new View.AboutView { Title = "About cgb_post_build_helper" }; wnd.Show(); }); ExitApplicationCommand = new DelegateCommand(_ => { _application.EndAllWatchesAndExitApplication(); }); }
private void ShowAboutView() { var newView = new View.AboutView(); newView.ShowDialog(); }