protected Icon GetIconForMask(string mask) { if (mask.Length == 0) { return(null); } if (mask.StartsWith("*.")) { string ext = mask.Substring(2); return(ShellIcon.GetSmallTypeIcon("x." + ext)); } return(null); }
private string GetInfoForMask(string mask) { if (mask.Length == 0) { return(""); } FileMask fileMask = new FileMask(mask); if (fileMask.type == FileMask.Type.Mask) { string ext = mask.Substring(2); return(ShellIcon.GetTypeInfo("x." + ext)); } return(fileMask.GetTypeInfo()); }
protected Icon GetIconForFile(string fullpath) { return(ShellIcon.GetSmallIcon(fullpath)); }