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); } }
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); } }