private void button1_Click(object sender, EventArgs e) { b_add bh = new b_add(); bh.Show(); this.Close(); }
private void button2_Click(object sender, EventArgs e) { b_add ba = new b_add(); ba.ShowDialog(); Functions.LoadComboBoxes("SELECT * FROM Customer", comboCustomerName, "CustomerName"); comboCustomerName.SelectedIndex = comboCustomerName.FindString(ba.customerObj); }