Exemplo n.º 1
0
        public WindowExplorerControl()
        {
            InitializeComponent();

            SysImageListHelper.SetTreeViewImageList(tvDirectories, sysilsSmall, false);
            SysImageListHelper.SetListViewImageList(lvFiles, sysilsSmall, false);
            Globals.ApplicationClosing += new EventHandler(Globals_ApplicationClosing);

            LoadWindowsControl();
        }
Exemplo n.º 2
0
        public ComponentsControl()
        {
            InitializeComponent();

            SysImageListHelper.SetTreeViewImageList(tvComponents, sysilsSmall, false);
            SysImageListHelper.SetTreeViewImageList(tvSystemFolder, sysilsSmall, false);
            SysImageListHelper.SetTreeViewImageList(tvShortcuts, sysilsSmall, false);
            folderImageIndex         = sysilsSmall.IconIndex(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), true);
            selectedFolderImageIndex = sysilsSmall.IconIndex(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), true, ShellIconStateConstants.ShellIconStateOpen);
            internetImageIndex       = sysilsSmall.IconIndex(Globals.imagesFolder + Globals.imgInternet, true);

            InitializeSystemFolders();
            InitializeShortcutFolders();

            ControlsManager.TreeViews.Add("Components", tvComponents);
            ControlsManager.ControlSelectionChanged += new EventHandler <ControlSelectedEventArgs>(ControlsManager_ControlSelectionChanged);

            addFilesFoldersThread.WorkerReportsProgress = addFilesFoldersThread.WorkerSupportsCancellation = true;
            addFilesFoldersThread.DoWork             += new DoWorkEventHandler(AddFilesFolders_Start);
            addFilesFoldersThread.RunWorkerCompleted += new RunWorkerCompletedEventHandler(AddFilesFolders_Complete);
            addFilesFoldersThread.ProgressChanged    += new ProgressChangedEventHandler(AddFilesFolders_ProgressChanged);
        }