Пример #1
0
 public void Activate(TabVM vm)
 {
     if (vm == null)
     {
         return;
     }
     LastActivated = vm;
     fileTabManager.SetFocus(vm.Tab);
 }
Пример #2
0
 public void WritePath(TabVM vm) => output.WriteFilename(vm.Path);
Пример #3
0
 public void WriteModule(TabVM vm) => output.WriteModule(vm.Module);
Пример #4
0
 public void WriteName(TabVM vm) => output.Write(BoxedTextColor.Text, vm.Name);
Пример #5
0
 public void WriteName(TabVM vm)
 {
     output.Write(vm.Name, TextTokenKind.Text);
 }
Пример #6
0
 public void WritePath(TabVM vm)
 {
     output.WriteFilename(vm.Path);
 }
Пример #7
0
 public void WriteName(TabVM vm)
 {
     output.Write(vm.Name, TextTokenKind.Text);
 }
Пример #8
0
 public void WriteModule(TabVM vm)
 {
     output.WriteModule(vm.Module);
 }
Пример #9
0
 void CloseTab()
 {
     var oldSelItem = SelectedItem;
     bool resetSelItem = false;
     foreach (var vm in SelectedItems.ToArray()) {
         resetSelItem |= oldSelItem == vm;
         if (lastActivated == vm)
             lastActivated = null;
         fileTabManager.Close(vm.Tab);
         Collection.Remove(vm);
     }
     if (resetSelItem)
         SelectedItem = tabsList.Count == 0 ? null : tabsList[0];
 }
Пример #10
0
 public void Activate(TabVM vm)
 {
     if (vm == null)
         return;
     LastActivated = vm;
     fileTabManager.SetFocus(vm.Tab);
 }