當前位置: 首頁>>代碼示例>>C#>>正文


C# QTabItem.NavigatedTo方法代碼示例

本文整理匯總了C#中QTTabBarLib.QTabItem.NavigatedTo方法的典型用法代碼示例。如果您正苦於以下問題:C# QTabItem.NavigatedTo方法的具體用法?C# QTabItem.NavigatedTo怎麽用?C# QTabItem.NavigatedTo使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在QTTabBarLib.QTabItem的用法示例。


在下文中一共展示了QTabItem.NavigatedTo方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: CreateTab

 public bool CreateTab(Address address, int index, bool fLocked, bool fSelect)
 {
     using(IDLWrapper wrapper = new IDLWrapper(address)) {
         address.ITEMIDLIST = wrapper.IDL;
         address.Path = wrapper.Path;
     }
     if((address.ITEMIDLIST == null) || (address.ITEMIDLIST.Length <= 0)) {
         return false;
     }
     QTabItem tab = new QTabItem(QTUtility2.MakePathDisplayText(address.Path, false), address.Path, tabBar.tabControl1);
     tab.NavigatedTo(address.Path, address.ITEMIDLIST, -1, false);
     tab.ToolTipText = QTUtility2.MakePathDisplayText(address.Path, true);
     tab.TabLocked = fLocked;
     if(index < 0) {
         tabBar.AddInsertTab(tab);
     }
     else {
         if(index > tabBar.tabControl1.TabCount) {
             index = tabBar.tabControl1.TabCount;
         }
         tabBar.tabControl1.TabPages.Insert(index, tab);
     }
     if(fSelect) {
         tabBar.tabControl1.SelectTab(tab);
     }
     return true;
 }
開發者ID:svn2github,項目名稱:QTTabBar,代碼行數:27,代碼來源:PluginServer.cs

示例2: AddStartUpTabs

 private void AddStartUpTabs(string openingGRP, string openingPath) {
     if(ModifierKeys == Keys.Shift || QTUtility.InstancesCount != 1) return;
     if(QTUtility.StartUpGroupList.Count > 0) {
         bool flag = QTUtility.CheckConfig(Settings.DontOpenSame);
         foreach(string str in QTUtility.StartUpGroupList) {
             string str2;
             if((openingGRP != str) && QTUtility.GroupPathsDic.TryGetValue(str, out str2)) {
                 if(QTUtility.StartUpGroupNameNowOpening == str) {
                     QTUtility.StartUpGroupNameNowOpening = string.Empty;
                 }
                 else {
                     foreach(string str3 in str2.Split(QTUtility.SEPARATOR_CHAR)) {
                         if(flag) {
                             if(str3.PathEquals(openingPath)) {
                                 tabControl1.TabPages.Relocate(0, tabControl1.TabCount - 1);
                                 continue;
                             }
                             if(tabControl1.TabPages.Cast<QTabItem>().Any(item => str3.PathEquals(item.CurrentPath))) {
                                 continue;
                             }
                         }
                         using(IDLWrapper wrapper = new IDLWrapper(str3)) {
                             if(wrapper.Available) {
                                 QTabItem tabPage = new QTabItem(QTUtility2.MakePathDisplayText(str3, false), str3, tabControl1);
                                 tabPage.NavigatedTo(str3, wrapper.IDL, -1);
                                 tabPage.ToolTipText = QTUtility2.MakePathDisplayText(str3, true);
                                 tabPage.UnderLine = true;
                                 tabControl1.TabPages.Add(tabPage);
                             }
                         }
                     }
                 }
             }
         }
     }
     if(QTUtility.CheckConfig(Settings.RestoreLockedTabs)) {
         RestoreTabsOnInitialize(1, openingPath);
     }
     else if(QTUtility.CheckConfig(Settings.RestoreTabs) || fIsFirstLoad) {
         RestoreTabsOnInitialize(0, openingPath);
     }
 }
開發者ID:KnowNo,項目名稱:test-code-backup,代碼行數:42,代碼來源:QTTabBarClass.cs

示例3: AddStartUpTabs

 private void AddStartUpTabs(string openingGRP, string openingPath) {
     if(Control.ModifierKeys != Keys.Shift) {
         if(QTUtility.StartUpGroupList.Count > 0) {
             bool flag = QTUtility.CheckConfig(Settings.DontOpenSame);
             foreach(string str in QTUtility.StartUpGroupList) {
                 string str2;
                 if((openingGRP != str) && QTUtility.GroupPathsDic.TryGetValue(str, out str2)) {
                     if(QTUtility.StartUpGroupNameNowOpening == str) {
                         QTUtility.StartUpGroupNameNowOpening = string.Empty;
                     }
                     else {
                         foreach(string str3 in str2.Split(QTUtility.SEPARATOR_CHAR)) {
                             if(flag) {
                                 if(string.Equals(str3, openingPath, StringComparison.OrdinalIgnoreCase)) {
                                     this.tabControl1.TabPages.Swap(0, this.tabControl1.TabCount - 1);
                                     goto Label_0188;
                                 }
                                 bool flag2 = false;
                                 foreach(QTabItem item in this.tabControl1.TabPages) {
                                     if(string.Equals(str3, item.CurrentPath, StringComparison.OrdinalIgnoreCase)) {
                                         flag2 = true;
                                         break;
                                     }
                                 }
                                 if(flag2) {
                                     goto Label_0188;
                                 }
                             }
                             using(IDLWrapper wrapper = new IDLWrapper(str3)) {
                                 if(wrapper.Available) {
                                     QTabItem tabPage = new QTabItem(QTUtility2.MakePathDisplayText(str3, false), str3, this.tabControl1);
                                     tabPage.NavigatedTo(str3, wrapper.IDL, -1);
                                     tabPage.ToolTipText = QTUtility2.MakePathDisplayText(str3, true);
                                     tabPage.UnderLine = true;
                                     this.tabControl1.TabPages.Add(tabPage);
                                 }
                             }
                         Label_0188: ;
                         }
                     }
                 }
             }
         }
         if(QTUtility.CheckConfig(Settings.RestoreLockedTabs)) {
             this.RestoreTabsOnInitialize(1, openingPath);
         }
         else if(QTUtility.CheckConfig(Settings.RestoreClosed)) {
             this.RestoreTabsOnInitialize(0, openingPath);
         }
     }
 }
開發者ID:KnowNo,項目名稱:test-code-backup,代碼行數:51,代碼來源:QTTabBarClass.cs

示例4: CreateNewTab

 private QTabItem CreateNewTab(IDLWrapper idlw) {
     string path = idlw.Path;
     QTabItem tab = new QTabItem(QTUtility2.MakePathDisplayText(path, false), path, tabControl1);
     tab.NavigatedTo(path, idlw.IDL, -1);
     tab.ToolTipText = QTUtility2.MakePathDisplayText(path, true);
     AddInsertTab(tab);
     return tab;
 }
開發者ID:KnowNo,項目名稱:test-code-backup,代碼行數:8,代碼來源:QTTabBarClass.cs

示例5: AddStartUpTabs

 private void AddStartUpTabs(string openingGRP, string openingPath)
 {
     if(ModifierKeys == Keys.Shift || InstanceManager.GetTotalInstanceCount() != 0) return;
     foreach(string path in GroupsManager.Groups.Where(g => g.Startup && openingGRP != g.Name).SelectMany(g => g.Paths)) {
         if(Config.Tabs.NeverOpenSame) {
             if(path.PathEquals(openingPath)) {
                 tabControl1.TabPages.Relocate(0, tabControl1.TabCount - 1);
                 continue;
             }
             if(tabControl1.TabPages.Any(item => path.PathEquals(item.CurrentPath))) {
                 continue;
             }
         }
         using(IDLWrapper wrapper = new IDLWrapper(path)) {
             if(!wrapper.Available) continue;
             QTabItem tabPage = new QTabItem(QTUtility2.MakePathDisplayText(path, false), path, tabControl1);
             tabPage.NavigatedTo(path, wrapper.IDL, -1, false);
             tabPage.ToolTipText = QTUtility2.MakePathDisplayText(path, true);
             tabPage.Underline = true;
             tabControl1.TabPages.Add(tabPage);
         }
     }
     if(Config.Window.RestoreOnlyLocked) {
         RestoreTabsOnInitialize(1, openingPath);
     }
     else if(Config.Window.RestoreSession || fIsFirstLoad) {
         RestoreTabsOnInitialize(0, openingPath);
     }
 }
開發者ID:Nicologies,項目名稱:QTTabBar,代碼行數:29,代碼來源:QTTabBarClass.cs


注:本文中的QTTabBarLib.QTabItem.NavigatedTo方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。