private void btnAddCustomer_Click(object sender, EventArgs e) { var addCustomerForm = new CustomerDetail(DetailMode.Add, this, AddressRepo, CustomerRepo); addCustomerForm.Show(); }