private void btnBrowse_Click(object sender, EventArgs e) { string selectedPath = FormBrowseTFSFolder.DialogShow(this.edFolder.Text); if (selectedPath != null) { this.edFolder.Text = selectedPath; UpdateWarning(); } }
private void BrowseForServerFolder_Click(object sender, EventArgs args) { var btn = (sender as Button); var pnl = btn.Parent as Panel; Control[] controls = pnl.Controls.Find("edit", false); var edit = controls[0] as TextBox; string selectedPath = FormBrowseTFSFolder.DialogShow(edit.Text); if (selectedPath != null) { edit.Text = selectedPath; } }