private void accountWare_Click(object sender, EventArgs e) { if (comboAccount.SelectedItem != null) { Account.Warehouse formWare = new Account.Warehouse(); formWare.AccountName = comboAccount.Text; formWare.ShowDialog(); } }