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));
        }
Ejemplo n.º 2
0
 private void advancedButton_Click(object sender, EventArgs e)
 {
     PropertiesBoxDialog.ShowDialog(this, "Connection properties", this.CurrentProps);
 }