public void Dispose() { AddFolder?.Dispose(); BrowseFolder?.Dispose(); Folder?.Dispose(); OpenedFolder?.Dispose(); }
private void BrowseButton_Click(object sender, EventArgs e) { BrowseFolder.SelectedPath = WorkingDirectoryInput.Text; if (BrowseFolder.ShowDialog() == System.Windows.Forms.DialogResult.OK) { WorkingDirectoryInput.Text = BrowseFolder.SelectedPath; } }
private void ButtonBrowse_Click(object sender, EventArgs e) { BrowseFolder.Description = "Select the place where your site will be stored:"; BrowseFolder.SelectedPath = wwwFolder.Text; if (BrowseFolder.ShowDialog() == DialogResult.OK) { wwwFolder.Text = BrowseFolder.SelectedPath; } }
private void starButton2_ClickButton(object sender, EventArgs e) { BrowseFolder.ShowDialog(); foreach (var f in new System.IO.DirectoryInfo(BrowseFolder.SelectedPath).GetFiles()) { var nf = new VFile(); nf.FullPath = f.FullName; Files.Add(nf); } SyncUI(); }
private void browseWorkingDirectory_Click(object sender, EventArgs e) { Button browseButton = (Button)sender; TextBox directoryTextBox = (TextBox)browseButton.Tag; BrowseFolder.SelectedPath = directoryTextBox.Text; if (BrowseFolder.ShowDialog() == DialogResult.OK) { directoryTextBox.Text = BrowseFolder.SelectedPath; } }