Esempio n. 1
0
        public override void Init()
        {
            base.Init();

            var fileViewIcons = new ImageList();

            fileViewIcons.ColorDepth = ColorDepth.Depth32Bit;
            try {
                fileViewIcons.Images.Add("FOLDER", iconHandler.GetFolderIconFromSystem());
            } catch (Exception e) {
                Debug.WriteLine("FileUserControl.cs | Failed to add images for rootTreView. Exception: " + e); //TODO: Throw exception
            }

            detailsListView.SmallImageList = fileViewIcons;
            detailsListView.LargeImageList = fileViewIcons;
            detailsListView.View           = View.Details;
            ContextMenu = new FileMenu(Controller, this);
        }
Esempio n. 2
0
        public override void Init()
        {
            base.Init();

            var fileViewIcons = new ImageList();
            fileViewIcons.ColorDepth = ColorDepth.Depth32Bit;
            try {
                fileViewIcons.Images.Add("FOLDER", iconHandler.GetFolderIconFromSystem());
            } catch (Exception e) {
                Debug.WriteLine("FileUserControl.cs | Failed to add images for rootTreView. Exception: " + e); //TODO: Throw exception
            }

            detailsListView.SmallImageList = fileViewIcons;
            detailsListView.LargeImageList = fileViewIcons;
            detailsListView.View = View.Details;
            ContextMenu = new FileMenu(Controller, this);
        }