private void petsManagementToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (!(this.ParentForm is PetsManagement))
     {
         this.ParentForm.Hide();
         PetsManagement form = new PetsManagement();
         form.ShowDialog();
         this.ParentForm.Close();
     }
 }
 private void btnPetsManagement_Click(object sender, EventArgs e)
 {
     try
     {
         this.Hide();
         PetsManagement newForm = new PetsManagement(admin);
         newForm.ShowDialog();
         this.Show();
     }
     catch (Exception)
     {
         // ignored
     }
 }
        public void ShowPetManagement()
        {
            PetsManagement newForm = new PetsManagement(admin);

            Application.Run(newForm);
        }