Exemple #1
0
        public ExplorerView()
        {
            extMap = new Dictionary<String,String>();
            control = new ExplorerControl();
            treeView = control.TreeView;

            imageList = new ImageList();
            imageList.ImageSize = new Size(16, 16);
            imageList.ColorDepth = ColorDepth.Depth32Bit;
            imageList.TransparentColor = Color.Magenta;
            treeView.ImageList = imageList;

            imageList.Images.Add("Drive", Bitmaps.Load<NS>("Drive"));
            imageList.Images.Add("Folder", Bitmaps.Load<NS>("Folder"));
            imageList.Images.Add("File", Bitmaps.Load<NS>("File"));
            imageList.Images.Add("Computer", Bitmaps.Load<NS>("Computer"));
            imageList.Images.Add("Favorite", Bitmaps.Load<NS>("Favorite"));
            imageList.Images.Add("FilterFolder", Bitmaps.Load<NS>("FilterFolder"));
        }
Exemple #2
0
        public ExplorerView()
        {
            extMap   = new Dictionary <String, String>();
            control  = new ExplorerControl();
            treeView = control.TreeView;

            imageList                  = new ImageList();
            imageList.ImageSize        = new Size(16, 16);
            imageList.ColorDepth       = ColorDepth.Depth32Bit;
            imageList.TransparentColor = Color.Magenta;
            treeView.ImageList         = imageList;

            imageList.Images.Add("Drive", Bitmaps.Load <NS>("Drive"));
            imageList.Images.Add("Folder", Bitmaps.Load <NS>("Folder"));
            imageList.Images.Add("File", Bitmaps.Load <NS>("File"));
            imageList.Images.Add("Computer", Bitmaps.Load <NS>("Computer"));
            imageList.Images.Add("Favorite", Bitmaps.Load <NS>("Favorite"));
            imageList.Images.Add("FilterFolder", Bitmaps.Load <NS>("FilterFolder"));
        }