public override void Execute() { ITab fileTabViewModel = tabService.RequestDefaultTab(); fileTabViewModel.SetFile(Path.Combine(Folders.ProgramFolder, "config.json")); shell.Value.OpenTab(fileTabViewModel); }
public override void Execute() { ITab fileTabViewModel = tabService.RequestDefaultTab(); fileTabViewModel.SetFile(Path.Combine(Folders.UserFolder, "key_bindings.json")); shell.Value.OpenTab(fileTabViewModel); }
public void OpenItem(TreeItemModel item) { if (item.IsFile) { ITab fileTabViewModel = tabService.RequestDefaultTab(); fileTabViewModel.SetFile(item.FullPath); shell.Value.OpenTab(fileTabViewModel); } }
public override void Execute() { var dialog = new OpenFileDialog(); if (dialog.ShowDialog().Value) { ITab fileTabViewModel = tabService.RequestDefaultTab(); fileTabViewModel.SetFile(dialog.FileName); shell.Value.OpenTab(fileTabViewModel); } }
public override void Execute() { ITab item = tabService.RequestDefaultTab(); shell.Value.OpenTab(item); }
public override void Execute() { ITab item = tabService.RequestDefaultTab(); shell.Value.ToggleCommandWindow(); }