Exemple #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            address a = (address)cbAddress.SelectedItem;

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

            editor.Show();
        }