Exemple #1
0
        private Image GetImge(string fileExt)
        {
            if (_wks is UCWorkspace)
            {
                UCWorkspace uw = _wks as UCWorkspace;
                switch (fileExt)
                {
                case ".DAT":
                    return(uw.workspaceImages.Images["DBLVFile.png"]);

                case ".XLSX":
                case ".XLS":
                    return(uw.workspaceImages.Images["ExcelFile.png"]);

                case ".GXD":
                    return(uw.workspaceImages.Images["GXDFile.png"]);

                case "Category":
                    return(uw.workspaceImages.Images["Category.png"]);

                case "Open":
                    return(uw.workspaceImages.Images["cmdOpen.png"]);

                default:
                    return(uw.workspaceImages.Images["DBLVFile.png"]);
                }
            }
            return(null);
        }
Exemple #2
0
 private void InitDelegate()
 {
     if (_wks is UCWorkspace)
     {
         UCWorkspace ucw = _wks as UCWorkspace;
         ucw.ListViewGroup     += new UCWorkspace.ListViewGroupHandler(ListView_Group);
         ucw.ListViewGroupInit += new UCWorkspace.ListViewGroupInitHandler(ListView_GroupInit);
     }
 }