private void formHomePage_Load(object sender, EventArgs e) { btnIslemiTamamla.Visible = false; btnScan.Visible = false; Populater.Fill(cbFacultyMembers, DataFillingService.GatherDoctors); Populater.Fill(cbSurgery, DataFillingService.GatherSections); Populater.Fill(cbState, DataFillingService.GatherState); Populater.Fill(cbPatientExaminationEpicrisis, DataFillingService.GatherPatientExaminationEpicrisis); Populater.Fill(cbExaminationAndReports, DataFillingService.GatherExaminationAndReports); Populater.Fill(cbCriminalAndMedicalBoard, DataFillingService.GatherCriminalAndMedicalBoard); EventHandler reportsHandler = (o, args) => { var cb = (ComboBox)o; if (!cb.Focused) { return; } lblReports.Text = GetSelectedText(cb); _isReportSelected = true; }; cbCriminalAndMedicalBoard.SelectedIndexChanged += reportsHandler; cbPatientExaminationEpicrisis.SelectedIndexChanged += reportsHandler; cbExaminationAndReports.SelectedIndexChanged += reportsHandler; cbState.SelectedIndexChanged += (o, args) => { SetControlTextDependsOnCb(lblPatientStatus, (ComboBox)o, ref _isStateSelected); }; cbSurgery.SelectedIndexChanged += (o, args) => { SetControlTextDependsOnCb(lblSection, (ComboBox)o, ref _isSectionSelected); }; cbFacultyMembers.SelectedIndexChanged += (o, args) => { SetControlTextDependsOnCb(lblFacultyMember, (ComboBox)o, ref _isMemberSelected); }; }
private void Bolum_Load(object sender, EventArgs e) { Populater.Fill(lbBolum, DataFillingService.GatherSections); }
private void txtPatientDiagnosed_TextChanged(object sender, EventArgs e) { Populater.Fill(cbDiagnoses, () => DataFillingService.GatherDiagnoses(txtPatientDiagnose.Text)); }
private void OgretimUyesi_Load(object sender, EventArgs e) { Populater.Fill(lbOgretimUyesi, DataFillingService.GatherDoctors); }