Beispiel #1
0
 public Icon GetResourceIcon(IResource resource)
 {
     if (resource.Type == _folderResourceType)
     {
         string            directory = resource.GetPropText(_propDirectory);
         FoldersCollection instance  = FoldersCollection.Instance;
         if (instance.IsPathDeferred(directory) || instance.IsPathMonitored(directory))
         {
             return((resource.GetIntProp("Open") != 0) ? _openFolderIcon : _folderIcon);
         }
         return(_excludedFolderIcon);
     }
     return(null);
 }