Example #1
0
 private void FillGrid()
 {
     DrugManufacturers.RefreshCache();
     _listDrugManufacturers = DrugManufacturers.GetDeepCopy();
     listMain.Items.Clear();
     for (int i = 0; i < _listDrugManufacturers.Count; i++)
     {
         listMain.Items.Add(_listDrugManufacturers[i].ManufacturerCode + " - " + _listDrugManufacturers[i].ManufacturerName);
     }
 }
Example #2
0
 private void FormVaccineDefEdit_Load(object sender, EventArgs e)
 {
     textCVXCode.Text       = VaccineDefCur.CVXCode;
     textVaccineName.Text   = VaccineDefCur.VaccineName;
     _listDrugManufacturers = DrugManufacturers.GetDeepCopy();
     for (int i = 0; i < _listDrugManufacturers.Count; i++)
     {
         comboManufacturer.Items.Add(_listDrugManufacturers[i].ManufacturerCode + " - " + _listDrugManufacturers[i].ManufacturerName);
         if (_listDrugManufacturers[i].DrugManufacturerNum == VaccineDefCur.DrugManufacturerNum)
         {
             comboManufacturer.SelectedIndex = i;
         }
     }
 }