private void AddLibPath_Click(object sender, EventArgs e) { string?libraryPath = WindowsUtility.SelectFolder(this, "Add Library Path", null); if (libraryPath.IsNotEmpty()) { this.AppendOption("/lib:", libraryPath); } }
private void GetDirectory(TextBox edit, string title) { string selectedFolder = WindowsUtility.SelectFolder(this, title, edit.Text); if (!string.IsNullOrEmpty(selectedFolder)) { edit.Text = selectedFolder; } }
private void SelectLogFolderClicked(object sender, RoutedEventArgs e) { string folder = WindowsUtility.SelectFolder(this, "Select Log Folder", this.LogFolder); if (!string.IsNullOrEmpty(folder)) { this.logFolder.Text = folder; } }
private void ChoosePath_Click(object sender, System.EventArgs e) { string selectedPath = WindowsUtility.SelectFolder(this, "Select a directory or drive:", null); if (!string.IsNullOrEmpty(selectedPath)) { this.PopulateTree(selectedPath); } }
private void SelectWorkingDirectory_Click(object sender, EventArgs e) { string initialFolder = Manager.ExpandVariables(this.edtWorkingDirectory.Text); string?selectedFolder = WindowsUtility.SelectFolder(this, "Select Working Directory", initialFolder); if (selectedFolder.IsNotEmpty()) { this.edtWorkingDirectory.Text = Manager.CollapseVariables(selectedFolder); } }