示例#1
0
 internal void Reset()
 {
     if ((consumer == null) | (measurements == null))
     {
         return;
     }
     userControlComboboxList.Count = measurements.Count;
     string[]   t  = new string[measurements.Count];
     ComboBox[] cb = Boxes;
     for (int i = 0; i < t.Length; i++)
     {
         IMeasurement m = measurements[i];
         t[i] = m.Name;
         object        type = m.Type;
         List <string> l    = new List <string>();
         consumer.GetAllAliases(l, type);
         cb[i].FillCombo(l);
     }
     userControlComboboxList.Texts = t;
     Set(dictionary);
 }