private void buttonDoctor_Click(object sender, EventArgs e)
 {
     if (roles.Contains(Role))
     {
         CRUDDoctor cRUDDoctor = new CRUDDoctor();
         ControlClass.ShowControl(cRUDDoctor, Content);
     }
     else
     {
         Docappointment doctorsAppointmentUserControl = new Docappointment(Convert.ToInt32((ID)));
         ControlClass.ShowControl(doctorsAppointmentUserControl, Content);
     }
 }
Beispiel #2
0
        private void buttonAppointments_Click(object sender, EventArgs e)
        {
            Docappointment doctorsAppointmentUserControl = new Docappointment(Convert.ToInt32(this.ID));

            ControlClass.ShowControl(doctorsAppointmentUserControl, Content);
        }