예제 #1
0
파일: FilePlugin.cs 프로젝트: mo5h/omeo
 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);
 }