Esempio n. 1
0
 public string GetFileImage(CFile file)
 {
     if (file.IsDirectory())
     {
         return("../../" + GetFolderIcon(file));
     }
     else
     {
         ;
         string imgpath;
         try {
             imgpath = FileBrowserImageFactory.GetInstance().GetExtensionImage(
                 Path.GetExtension(file.Name));
         } catch (Exception) {
             imgpath = null;
         }
         if (imgpath == null)
         {
             return("../../attributes/filebrowser/misc.gif");
         }
         else
         {
             return("../../attributes/filebrowser/" + imgpath);
         }
     }
 }
Esempio n. 2
0
 public static FileBrowserImageFactory GetInstance()
 {
     if (null == m_instance)
         return (m_instance = new FileBrowserImageFactory());
     else
         return m_instance;
 }
Esempio n. 3
0
 public static FileBrowserImageFactory GetInstance()
 {
     if (null == m_instance)
     {
         return(m_instance = new FileBrowserImageFactory());
     }
     else
     {
         return(m_instance);
     }
 }