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


C# QTabItem.GetLogHash方法代碼示例

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


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

示例1: AddToHistory

 private static void AddToHistory(QTabItem closingTab) {
     string currentPath = closingTab.CurrentPath;
     if((!QTUtility.CheckConfig(Settings.NoHistory) && !string.IsNullOrEmpty(currentPath)) && !IsSearchResultFolder(currentPath)) {
         if(QTUtility2.IsShellPathButNotFileSystem(currentPath) && (currentPath.IndexOf("???") == -1)) {
             currentPath = currentPath + "???" + closingTab.GetLogHash(true, 0);
         }
         QTUtility.ClosedTabHistoryList.Add(currentPath);
         SyncButtonBarBroadCast(2);
     }
 }
開發者ID:KnowNo,項目名稱:test-code-backup,代碼行數:10,代碼來源:QTTabBarClass.cs

示例2: tabControl1_SelectedIndexChanged

 private void tabControl1_SelectedIndexChanged(object sender, EventArgs e) {
     QTabItem selectedTab = (QTabItem)tabControl1.SelectedTab;
     string currentPath = selectedTab.CurrentPath;
     if(IsSpecialFolderNeedsToTravel(currentPath) && LogEntryDic.ContainsKey(selectedTab.GetLogHash(true, 0))) {
         NavigatedByCode = true;
         CurrentTab = selectedTab;
         while(lstActivatedTabs.Remove(CurrentTab)) {
         }
         lstActivatedTabs.Add(CurrentTab);
         if(lstActivatedTabs.Count > 15) {
             lstActivatedTabs.RemoveAt(0);
         }
         fNavigatedByTabSelection = NavigateToPastSpecialDir(CurrentTab.GetLogHash(true, 0));
         if(pluginManager != null) {
             pluginManager.OnTabChanged(tabControl1.SelectedIndex, selectedTab.CurrentIDL, selectedTab.CurrentPath);
         }
         if(tabControl1.Focused) {
             listView.SetFocus();
         }
     }
     else {
         IDLWrapper idlw = null;
         if((selectedTab.CurrentIDL != null) && (selectedTab.CurrentIDL.Length > 0)) {
             idlw = new IDLWrapper(selectedTab.CurrentIDL);
         }
         if((idlw == null) || !idlw.Available) {
             idlw = new IDLWrapper(selectedTab.CurrentPath);
         }
         using(idlw) {
             if(!idlw.Available) {
                 CancelFailedTabChanging(currentPath);
                 return;
             }
             CurrentTab = selectedTab;
             while(lstActivatedTabs.Remove(CurrentTab)) {
             }
             lstActivatedTabs.Add(CurrentTab);
             if(lstActivatedTabs.Count > 15) {
                 lstActivatedTabs.RemoveAt(0);
             }
             if(((currentPath != CurrentAddress) || (QTUtility.IsXP && (currentPath == QTUtility.PATH_SEARCHFOLDER))) || NowTabCloned) {
                 NavigatedByCode = true;
                 fNavigatedByTabSelection = true;
                 NowTabCloned = false;
                 if(ShellBrowser.Navigate(idlw) != 0) {
                     CancelFailedTabChanging(currentPath);
                     return;
                 }
             }
             else {
                 SyncTravelState();
             }
         }
         if(tabControl1.Focused) {
             listView.SetFocus();
         }
         if(pluginManager != null) {
             pluginManager.OnTabChanged(tabControl1.SelectedIndex, CurrentTab.CurrentIDL, CurrentTab.CurrentPath);
         }
     }
 }
開發者ID:KnowNo,項目名稱:test-code-backup,代碼行數:61,代碼來源:QTTabBarClass.cs

示例3: AddToHistory

 private static void AddToHistory(QTabItem closingTab)
 {
     string currentPath = closingTab.CurrentPath;
     if((Config.Misc.KeepHistory && !string.IsNullOrEmpty(currentPath)) && !IsSearchResultFolder(currentPath)) {
         if(QTUtility2.IsShellPathButNotFileSystem(currentPath) && (currentPath.IndexOf("???") == -1)) {
             currentPath = currentPath + "???" + closingTab.GetLogHash(true, 0);
         }
         StaticReg.ClosedTabHistoryList.Add(currentPath);
         InstanceManager.ButtonBarBroadcast(bbar => bbar.RefreshButtons(), true);
     }
 }
開發者ID:Nicologies,項目名稱:QTTabBar,代碼行數:11,代碼來源:QTTabBarClass.cs


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