Ejemplo n.º 1
0
        private void btnOk_Click(object sender, EventArgs e)
        {
            string analysis = string.Empty;
            DoctorExaminationSystem doctorExamination = new DoctorExaminationSystem();

            foreach (CheckBox item in pnlAnalysis.Controls)
            {
                if (item.Checked == true)
                {
                    analysis += item.Text + ",";
                }
            }
            doctorExamination.Analysis = analysis;
            this.Close();
        }
Ejemplo n.º 2
0
        private void btnCreateInspection_Click(object sender, EventArgs e)
        {
            int appointmentId = Convert.ToInt32(dtGridViewDoctorAppointmentScreen.CurrentRow.Cells[0].Value);
            int patientId     = Convert.ToInt32(dtGridViewDoctorAppointmentScreen.CurrentRow.Cells[1].Value);

            Examination examination = new Examination
            {
                AppointmentId = appointmentId,
                Status        = true
            };

            examinationManagement.AddExamination(examination);

            DoctorExaminationSystem doctorInspectionSystem = new DoctorExaminationSystem();

            doctorInspectionSystem.GetAppointmentId = appointmentId;
            doctorInspectionSystem.GetPatientId     = patientId;

            doctorInspectionSystem.Show();
        }