示例#1
0
        void Fill()
        {
            postSet = false;
            Double         a  = 0;
            IDataConsumer  dc = func;
            IList <string> l  = dc.GetAllMeasurementsType(a);

            cb.Items.Clear();
            cb.FillCombo(l);
        }
示例#2
0
        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;
        }
示例#3
0
        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);
            }
        }