public static DialogResult ShowDialog(IWin32Window owner, string title, object obj) { PropertiesBoxDialog dlg = new PropertiesBoxDialog(); dlg.Text = title; dlg.grid.SelectedObject = obj; return(dlg.ShowDialog(owner)); }
private void advancedButton_Click(object sender, EventArgs e) { PropertiesBoxDialog.ShowDialog(this, "Connection properties", this.CurrentProps); }