Exemplo n.º 1
0
        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();
            });
        }
Exemplo n.º 2
0
 private void ShowAboutView()
 {
     var newView = new View.AboutView();
     newView.ShowDialog();
 }
Exemplo n.º 3
0
        private void ShowAboutView()
        {
            var newView = new View.AboutView();

            newView.ShowDialog();
        }