示例#1
0
 private void FillGrid()
 {
     DrugUnits.RefreshCache();
     listMain.Items.Clear();
     for (int i = 0; i < DrugUnits.Listt.Count; i++)
     {
         listMain.Items.Add(DrugUnits.Listt[i].UnitIdentifier + " - " + DrugUnits.Listt[i].UnitText);
     }
 }
示例#2
0
 private void FillGrid()
 {
     DrugUnits.RefreshCache();
     _listDrugUnits = DrugUnits.GetDeepCopy();
     listMain.Items.Clear();
     for (int i = 0; i < _listDrugUnits.Count; i++)
     {
         listMain.Items.Add(_listDrugUnits[i].UnitIdentifier + " - " + _listDrugUnits[i].UnitText);
     }
 }