void Fill() { postSet = false; Double a = 0; IDataConsumer dc = func; IList <string> l = dc.GetAllMeasurementsType(a); cb.Items.Clear(); cb.FillCombo(l); }
private void Fill() { isSelect = false; IDataConsumer c = writer; IList <string> cond = c.GetAllMeasurementsType(false); comboBoxCond.FillCombo(cond); Dictionary <string, object> d = c.GetSimpleTypeMeasurements(); ICollection <ComboBox> cb = userControlComboboxList.Boxes; foreach (ComboBox b in cb) { b.Items.Clear(); b.FillCombo(d.Keys); } isSelect = true; }
void SetNumber() { int n = (int)numericUpDown.Value; userControlComboboxList.Count = n; string[] t = new string[n]; for (int i = 0; i < n; i++) { t[i] = "Input " + (i + 1); } userControlComboboxList.Texts = t; if (conv == null) { return; } IDataConsumer dc = conv; ICollection <string> m = dc.GetAllMeasurementsType().Keys; for (int i = 0; i < n; i++) { userControlComboboxList.Boxes[i].FillCombo(m); } }