本文整理匯總了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);
}
}
示例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);
}
}
}
示例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);
}
}