Example #1
0
 private void btnVeterinarian_Click(object sender, EventArgs e)
 {
     if (frmVet == null)
     {
         frmVet = new VeterinarianForm(DM, this);
     }
     frmVet.ShowDialog();
 }
Example #2
0
 /// <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
 }