Exemplo n.º 1
0
        public ConsoleCommands(IConsole solutionExplorer)
        {
            _shell   = IoC.Get <IShell>();
            _console = solutionExplorer;

            ViewConsoleCommand = new CommandDefinition("Console", null,
                                                       ReactiveCommand.Create(() =>
            {
                _shell.CurrentPerspective.AddOrSelectTool(_console as IToolViewModel);
            }));

            ViewWelcomeScreenCommand = new CommandDefinition("Welcome Screen", null,
                                                             ReactiveCommand.Create(() =>
            {
                var vm = IoC.Get <WelcomeScreenViewModel>();
                _shell.AddOrSelectDocument(vm);
            }));
        }
Exemplo n.º 2
0
 private void ShowOptionsPage() => _shell.AddOrSelectDocument(IoC.Get <SettingsDialogViewModel>());