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); }
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(); }