Esempio n. 1
0
        private void button9_Click(object sender, EventArgs e)
        {
            PatientCRUD cRUDPatient = new PatientCRUD();

            ControlClass.ShowControl(cRUDPatient, Content);
            //rameen2 was here
        }
        private void DashBoard_Load(object sender, EventArgs e)
        {
            DatabaseOps databaseOps = new DatabaseOps();

            roles = databaseOps.getRoles();
            if (roles.Contains(Role))
            {
                AdminHomeControl homeControl = new AdminHomeControl(ID);
                ControlClass.ShowControl(homeControl, Content);
                //buttonDoctor.Image = (new Bitmap(Image.FromFile(@"C:\Users\User\OneDrive\Desktop\Icons\stethoscope.png"), new Size(32, 32)));
                buttonDoctor.BackgroundImageLayout = ImageLayout.Stretch;
                buttonSettings.Hide();
                buttonPatient.Hide();
                buttonBed.Hide();
            }
            else
            {
                DoctorHomeUserControl doctorHomeUserControl = new DoctorHomeUserControl(ID, Departmental_ID);
                ControlClass.ShowControl(doctorHomeUserControl, Content);
                buttonBed.Visible = false;
                //buttonDoctor.Visible = false;
                //buttonDoctor.Image = (new Bitmap(Image.FromFile(@"C:\Users\User\OneDrive\Desktop\Icons\appointment1.png"), new Size(32, 32)));
                buttonDoctor.BackgroundImageLayout = ImageLayout.Stretch;
            }
        }
 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 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);
     }
 }
        private void buttonHome_Click(object sender, EventArgs e)
        {
            if (roles.Contains(Role))
            {
                AdminHomeControl homeControl = new AdminHomeControl(ID);
                ControlClass.ShowControl(homeControl, Content);

                //DoctorHomeUserControl doctorHomeUserControl = new DoctorHomeUserControl(ID, Departmental_ID);
                //ControlClass.ShowControl(doctorHomeUserControl, Content);
            }
            else
            {
                DoctorHomeUserControl doctorHomeUserControl = new DoctorHomeUserControl(ID, Departmental_ID);
                ControlClass.ShowControl(doctorHomeUserControl, Content);
            }
        }
Esempio n. 6
0
        private void DashBoard_Load(object sender, EventArgs e)
        {
            AdminHomeControl homeControl = new AdminHomeControl();

            ControlClass.ShowControl(homeControl, Content);
            if (Role == "admin")
            {
                AdminSidebarUserControl adminSidebar = new AdminSidebarUserControl();
                ControlClass.ShowControl(adminSidebar, SideBar);
            }
            else if (Role == "doctor")
            {
                DoctorSidebarUserControl doctorSidebar = new DoctorSidebarUserControl();
                ControlClass.ShowControl(doctorSidebar, SideBar);
            }
            else
            {
                AdminSidebarUserControl adminSidebar = new AdminSidebarUserControl();
                ControlClass.ShowControl(adminSidebar, SideBar);
            }
        }
        private void buttonCovid_Click(object sender, EventArgs e)
        {
            InpatientUserControl inpatientUser = new InpatientUserControl();

            ControlClass.ShowControl(inpatientUser, Content);
        }
        private void buttonBed_Click(object sender, EventArgs e)
        {
            RoomCRUD roomCRUD = new RoomCRUD();

            ControlClass.ShowControl(roomCRUD, Content);
        }
Esempio n. 9
0
        private void buttonAppointments_Click(object sender, EventArgs e)
        {
            Docappointment doctorsAppointmentUserControl = new Docappointment(Convert.ToInt32(this.ID));

            ControlClass.ShowControl(doctorsAppointmentUserControl, Content);
        }
        private void buttonAppointments_Click(object sender, EventArgs e)
        {
            DoctorsAppointmentUserControl doctorsAppointmentUserControl = new DoctorsAppointmentUserControl();

            ControlClass.ShowControl(doctorsAppointmentUserControl, Content);
        }
        private void button9_Click(object sender, EventArgs e)
        {
            PatientCRUD cRUDPatient = new PatientCRUD(employeeID);

            ControlClass.ShowControl(cRUDPatient, Content);
        }
Esempio n. 12
0
        private void buttonHome_Click(object sender, EventArgs e)
        {
            AdminHomeControl homeControl = new AdminHomeControl();

            ControlClass.ShowControl(homeControl, Content);
        }
        private void buttonCovid_Click(object sender, EventArgs e)
        {
            CovidUserControl covidUserControl = new CovidUserControl();

            ControlClass.ShowControl(covidUserControl, Content);
        }
        private void DashBoard_Load(object sender, EventArgs e)
        {
            AdminHomeControl homeControl = new AdminHomeControl();

            ControlClass.ShowControl(homeControl, Content);
        }
Esempio n. 15
0
        private void button10_Click(object sender, EventArgs e)
        {
            LABORATORYCRUD lABORATORYCRUD = new LABORATORYCRUD();

            ControlClass.ShowControl(lABORATORYCRUD, Content);
        }
        private void buttonSettings_Click(object sender, EventArgs e)
        {
            SettingUserControl settingUserControl = new SettingUserControl(ID);

            ControlClass.ShowControl(settingUserControl, Content);
        }
        private void buttonDoctor_Click(object sender, EventArgs e)
        {
            CRUDDoctor cRUDDoctor = new CRUDDoctor();

            ControlClass.ShowControl(cRUDDoctor, Content);
        }
Esempio n. 18
0
        private void buttondoctorspatient_Click(object sender, EventArgs e)
        {
            DoctorsPatientListControl doctorsPatientListControl = new DoctorsPatientListControl(ID);

            ControlClass.ShowControl(doctorsPatientListControl, Content);
        }