private static string GetTitleText(PathData pathData) { string strPath = pathData.strPath; if(strPath.StartsWith("::")) { return pathData.strDisplay; } int index = strPath.IndexOf("???"); int length = strPath.IndexOf("*?*?*"); if(index != -1) { return strPath.Substring(0, index); } if(length != -1) { strPath = strPath.Substring(0, length); } return strPath; }
private static Image GetImage(PathData pathData) { string strImageKey = pathData.strImageKey; if(!QTUtility.ImageListGlobal.Images.ContainsKey(strImageKey)) { strImageKey = QTUtility.GetImageKey(pathData.strPath, null); } return QTUtility.ImageListGlobal.Images[strImageKey]; }