public override void Execute()
        {
            ITab fileTabViewModel = tabService.RequestDefaultTab();

            fileTabViewModel.SetFile(Path.Combine(Folders.ProgramFolder, "config.json"));
            shell.Value.OpenTab(fileTabViewModel);
        }
示例#2
0
        public override void Execute()
        {
            ITab fileTabViewModel = tabService.RequestDefaultTab();

            fileTabViewModel.SetFile(Path.Combine(Folders.UserFolder, "key_bindings.json"));
            shell.Value.OpenTab(fileTabViewModel);
        }
示例#3
0
 public void OpenItem(TreeItemModel item)
 {
     if (item.IsFile)
     {
         ITab fileTabViewModel = tabService.RequestDefaultTab();
         fileTabViewModel.SetFile(item.FullPath);
         shell.Value.OpenTab(fileTabViewModel);
     }
 }
示例#4
0
        public override void Execute()
        {
            var dialog = new OpenFileDialog();

            if (dialog.ShowDialog().Value)
            {
                ITab fileTabViewModel = tabService.RequestDefaultTab();
                fileTabViewModel.SetFile(dialog.FileName);
                shell.Value.OpenTab(fileTabViewModel);
            }
        }
示例#5
0
        public override void Execute()
        {
            ITab item = tabService.RequestDefaultTab();

            shell.Value.OpenTab(item);
        }
        public override void Execute()
        {
            ITab item = tabService.RequestDefaultTab();

            shell.Value.ToggleCommandWindow();
        }