private void CustomerSearchButton_Click(object sender, EventArgs e) { CustomerSearch customerSearch = null; if (customerSearch != null) { customerSearch.Activate(); } else { customerSearch = new CustomerSearch(); customerSearch.Show(); } }