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); })); }
private void ShowOptionsPage() => _shell.AddOrSelectDocument(IoC.Get <SettingsDialogViewModel>());