public OpenFolderUI(MoveFilesUI moveFilesUI, string rootPath)
        {
            this.moveFilesUI = moveFilesUI;
            this.rootPath    = rootPath;
            this.path        = rootPath;

            InitializeComponent();
            LoadDirectoryAndFiles(rootPath);
        }
示例#2
0
        public FolderNavigationUI()
        {
            moveFilesUI   = new MoveFilesUI();
            rootDrive     = Path.GetPathRoot(Environment.GetFolderPath(Environment.SpecialFolder.System));
            desktopPath   = Environment.GetFolderPath(Environment.SpecialFolder.Desktop);
            downloadsPath = Environment.ExpandEnvironmentVariables(@"%userprofile%\Downloads");

            InitializeComponent();

            topBar      = new TopBar(topBarPanel, "File Manager", 0);
            topBar.Dock = DockStyle.Top;
            topBarPanel.Controls.Add(topBar);
            MoveFiles.MainUIRef = this;

            InitSettings();
        }