Пример #1
0
        public override void Execute(IMenuItemContext context)
        {
            var tab = fileTabManager.GetOrCreateActiveTab();

            tab.Show(new AboutScreenFileTabContent(appWindow, extensionManager, aboutContentType), null, null);
            fileTabManager.SetFocus(tab);
        }
Пример #2
0
 public void Activate(TabVM vm)
 {
     if (vm == null)
     {
         return;
     }
     LastActivated = vm;
     fileTabManager.SetFocus(vm.Tab);
 }
Пример #3
0
        internal static void OpenNewTabInternal(IFileTabManager fileTabManager, bool clone = true)
        {
            var activeTab = fileTabManager.ActiveTab;

            if (activeTab == null)
            {
                return;
            }
            var newTab = fileTabManager.OpenEmptyTab();

            if (clone)
            {
                newTab.Show(activeTab.Content.Clone(), activeTab.UIContext.Serialize(), null);
                fileTabManager.SetFocus(newTab);
            }
        }