void AddID(ComboBox cb) { cbIDu1.Items.Clear(); List <ComboBoxItem> tmp = DataWork.GetIdCollection(ActiveUser.UserID); foreach (ComboBoxItem cbi in tmp) { cb.Items.Add(cbi); } }
void Update() { cbID.Items.Clear(); List <ComboBoxItem> lst = DataWork.GetIdCollection(ActiveUser.UserID); foreach (ComboBoxItem cbi in lst) { cbID.Items.Add(cbi); } }