//работа кнопки добавить в справочнике private void workAddDictButton() { if (this.tabControl2.SelectedTab == tabPage14) {//препараты FormDrugAdd addDrug = new FormDrugAdd(); addDrug.ShowDialog(); } else if (this.tabControl2.SelectedTab == tabPage12) {//Диагнозы } else if (this.tabControl2.SelectedTab == tabPage36) {//Схемы addNewSchemeForm addScheme = new addNewSchemeForm(); addScheme.ShowDialog(); } }
/// <summary> /// обновление вкладки хирургического лечения /// </summary> private void refreshSurgeryTab() { if (this.tabControlSurgery.SelectedTab == tabPage10)//Лекарственное лечение { loadDrugTreatmentTabData(); } else if (this.tabControlSurgery.SelectedTab == tabPage37) //Этапы { loadTreatmStepList(); } else if (this.tabControlSurgery.SelectedTab == tabPage38 || this.tabControlSurgery.SelectedTab == tabPage22)//Схемы { List<string> SchemeData = new addNewSchemeForm().fillSchemeList(); this.comboBox22.DataSource = SchemeData; this.comboBox32.DataSource = SchemeData; } else if (this.tabControlSurgery.SelectedTab == tabPage22) { fillDiaDataLists(); List<string> pDiags = fillPatientKartDiagList(0); //this.comboBox3.DataSource = pDiags; //this.comboBox24.DataSource = pDiags; //this.comboBox18.DataSource = pDiags; this.comboBox21.DataSource = pDiags; List<string> SurgeryE = _tabSurgeryEnv.fillListSurgeryEtap(this.searchPatientBox1.pIdN); this.listBoxSurgeryEtap.DataSource = SurgeryE; //this.comboBox27.DataSource = SurgeryE; //this.comboBox28.DataSource = SurgeryE; //this.comboBox23.DataSource = SurgeryE; //this.comboBox19.DataSource = SurgeryE; //this.comboBox2.DataSource = SchemeData; } }