Beispiel #1
0
        public NSImage GetFileIcon(int row)
        {
            Dictionary <string, Object> r = data[row];

            Object name;
            Object directory;

            r.TryGetValue("Name", out name);
            r.TryGetValue("_directory", out directory);

            return(DisplayUtils.GetFileIcon((string)name, (bool)directory));
        }
Beispiel #2
0
 public NSImage GetFileIcon(NSObject item)
 {
     return(DisplayUtils.GetFileIcon(((FileListOutlineItem)item).GetName(), ((FileListOutlineItem)item).IsDirectory && item != root));
 }