private void btnVeterinarian_Click(object sender, EventArgs e) { if (frmVet == null) { frmVet = new VeterinarianForm(DM, this); } frmVet.ShowDialog(); }
/// <summary> /// Creates the Veterinarian Maintenance window when the Veterinarian Maintenance button is clicked /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnVeterinarian_Click(object sender, EventArgs e) { if (frmVet == null) // Prevents more than one window is created { frmVet = new VeterinarianForm(DM, this); } frmVet.ShowDialog(); // Shows the window }