void LookInBrowseButtonClicked(object sender, EventArgs e) { FolderDialog dlg = new FolderDialog(); if (dlg.DisplayDialog("${res:Dialog.NewProject.SearchReplace.LookIn.SelectDirectory}") == DialogResult.OK) { Get<ComboBox>("lookIn").SelectedIndex = customDirectoryIndex; Get<ComboBox>("lookIn").Text = dlg.Path; } }
void BrowseButtonClick(object sender, EventArgs e) { FolderDialog fdiag = new FolderDialog(); if (fdiag.DisplayDialog("${res:Dialog.ProjectOptions.SelectFolderTitle}") == DialogResult.OK) { string path = fdiag.Path; if (!path.EndsWith("\\") && !path.EndsWith("/")) { path += "\\"; } editTextBox.Text = path; if (autoAddAfterBrowse) { AddButtonClick(null, null); } } }
public void Event(object sender, EventArgs e) { FolderDialog fdiag = new FolderDialog(); if (fdiag.DisplayDialog(description) == DialogResult.OK) { string path = fdiag.Path; if (panel.baseDirectory != null) { path = FileUtility.GetRelativePath(panel.baseDirectory, path); } if (!path.EndsWith("\\") && !path.EndsWith("/")) { path += "\\"; } panel.ControlDictionary[target].Text = path; } }
void BrowseButtonClick(object sender, EventArgs e) { FolderDialog fdiag = new FolderDialog(); if (fdiag.DisplayDialog("${res:Dialog.ProjectOptions.SelectFolderTitle}") == DialogResult.OK) { string path = fdiag.Path; if (!path.EndsWith("\\") && !path.EndsWith("/")) path += "\\"; editTextBox.Text = path; if (autoAddAfterBrowse) { AddButtonClick(null, null); } } }
void BrowseDirectories(object sender, EventArgs e) { FolderDialog fd = new FolderDialog(); if (fd.DisplayDialog("${res:Dialog.NewProject.SelectDirectoryForProject}") == DialogResult.OK) { ((TextBox)ControlDictionary["locationTextBox"]).Text = fd.Path; } // End }
public void Event(object sender, EventArgs e) { FolderDialog fdiag = new FolderDialog(); if (fdiag.DisplayDialog(description) == DialogResult.OK) { string path = fdiag.Path; if (panel.baseDirectory != null) { path = FileUtility.GetRelativePath(panel.baseDirectory, path); } if (!path.EndsWith("\\") && !path.EndsWith("/")) path += "\\"; panel.ControlDictionary[target].Text = path; } }