private void buttonPatient_Click_1(object sender, EventArgs e)
 {
     if (roles.Contains(Role))
     {
         InpatientUserControl inpatientUserControl = new InpatientUserControl();
         ControlClass.ShowControl(inpatientUserControl, Content);
     }
     else
     {
         DoctorsPatientListControl doctorsPatientListControl = new DoctorsPatientListControl(ID);
         ControlClass.ShowControl(doctorsPatientListControl, Content);
     }
 }
Пример #2
0
        private void buttondoctorspatient_Click(object sender, EventArgs e)
        {
            DoctorsPatientListControl doctorsPatientListControl = new DoctorsPatientListControl(ID);

            ControlClass.ShowControl(doctorsPatientListControl, Content);
        }