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); } }
private void buttonDoctor_Click(object sender, EventArgs e) { CRUDDoctor cRUDDoctor = new CRUDDoctor(); ControlClass.ShowControl(cRUDDoctor, Content); }