private void editProfile_Click(object sender, EventArgs e)
 {
     using (ProfileWindow profile = new ProfileWindow(_username, _password, "Clinic"))
     {
         if (profile.ShowDialog() == DialogResult.OK)
         {
             Close();
             DialogResult = DialogResult.OK;
         }
     }
 }
Ejemplo n.º 2
0
        private void editProfile_Click(object sender, EventArgs e)
        {
            ProfileWindow profile = new ProfileWindow(_username, _password, "Vet");

            profile.Show();
        }