private void button2_Click(object sender, EventArgs e) { address a = (address)cbAddress.SelectedItem; if (a != null) { AddressEditor editor = new AddressEditor(db, a); editor.Show(); } }
private void button1_Click(object sender, EventArgs e) { AddressEditor editor = new AddressEditor(db, (address)cbAddress.SelectedItem); editor.Show(); }