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

            topBar      = new TopBar(topBarPanel, "Move", 0);
            topBar.Dock = DockStyle.Top;
            topBarPanel.Controls.Add(topBar);
        }
        /// <summary>
        /// Positions topBar user control.
        /// </summary>
        private void FormatTopBar()
        {
            var index = topBarPanel.Controls.IndexOf(topBar);

            if (index != -1)
            {
                topBarPanel.Controls.RemoveAt(index);
            }

            topBar      = new TopBar(topBarPanel, path, sideBarPanel.Width);
            topBar.Dock = DockStyle.Top;

            topBarPanel.Controls.Add(topBar);
        }
Exemplo n.º 3
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();
        }