Exemplo n.º 1
0
        // Unique List<CboSelector> required per each combobox
        private List<CboSelector> GetPosSelector()
        {
            List<CboSelector> _pos_select_list = new List<CboSelector>();
              CboSelector selector;
              // Build position combobox selections
              selector = new CboSelector((int)Slave.PosRulePositions.NEGLRG,
                                 Strings.fuzzyPosRuleStrings[(int)Slave.PosRulePositions.NEGLRG]);
              _pos_select_list.Add(selector);
              selector = new CboSelector((int)Slave.PosRulePositions.NEGSML,
                                 Strings.fuzzyPosRuleStrings[(int)Slave.PosRulePositions.NEGSML]);
              _pos_select_list.Add(selector);
              selector = new CboSelector((int)Slave.PosRulePositions.OK,
                                 Strings.fuzzyPosRuleStrings[(int)Slave.PosRulePositions.OK]);
              _pos_select_list.Add(selector);
              selector = new CboSelector((int)Slave.PosRulePositions.POSSML,
                                 Strings.fuzzyPosRuleStrings[(int)Slave.PosRulePositions.POSSML]);
              _pos_select_list.Add(selector);
              selector = new CboSelector((int)Slave.PosRulePositions.POSLRG,
                                 Strings.fuzzyPosRuleStrings[(int)Slave.PosRulePositions.POSLRG]);
              _pos_select_list.Add(selector);

              return _pos_select_list;
        }
Exemplo n.º 2
0
        private List<CboSelector> GetSpdSelector()
        {
            List<CboSelector> _spd_select_list = new List<CboSelector>();
              CboSelector selector;
              // Build speed combobox selections
              selector = new CboSelector((int)Slave.PosRuleSpeeds.NEGFST,
                                 Strings.fuzzyPosRuleStrings[(int)Slave.PosRuleSpeeds.NEGFST]);
              _spd_select_list.Add(selector);
              selector = new CboSelector((int)Slave.PosRuleSpeeds.NEGSLW,
                                 Strings.fuzzyPosRuleStrings[(int)Slave.PosRuleSpeeds.NEGSLW]);
              _spd_select_list.Add(selector);
              selector = new CboSelector((int)Slave.PosRuleSpeeds.SAME,
                                 Strings.fuzzyPosRuleStrings[(int)Slave.PosRuleSpeeds.SAME]);
              _spd_select_list.Add(selector);
              selector = new CboSelector((int)Slave.PosRuleSpeeds.POSSLW,
                                 Strings.fuzzyPosRuleStrings[(int)Slave.PosRuleSpeeds.POSSLW]);
              _spd_select_list.Add(selector);
              selector = new CboSelector((int)Slave.PosRuleSpeeds.POSFST,
                                 Strings.fuzzyPosRuleStrings[(int)Slave.PosRuleSpeeds.POSFST]);
              _spd_select_list.Add(selector);

              return _spd_select_list;
        }
Exemplo n.º 3
0
        private List<CboSelector> GetOutSelector()
        {
            List<CboSelector> _out_select_list = new List<CboSelector>();
              CboSelector selector;
              // Build output combobox selections
              selector = new CboSelector((int)Slave.PosRuleOutputs.NEGHI,
                                 Strings.fuzzyPosRuleStrings[(int)Slave.PosRuleOutputs.NEGHI]);
              _out_select_list.Add(selector);
              selector = new CboSelector((int)Slave.PosRuleOutputs.NEGLO,
                                 Strings.fuzzyPosRuleStrings[(int)Slave.PosRuleOutputs.NEGLO]);
              _out_select_list.Add(selector);
              selector = new CboSelector((int)Slave.PosRuleOutputs.ZERO,
                                 Strings.fuzzyPosRuleStrings[(int)Slave.PosRuleOutputs.ZERO]);
              _out_select_list.Add(selector);
              selector = new CboSelector((int)Slave.PosRuleOutputs.POSLO,
                                 Strings.fuzzyPosRuleStrings[(int)Slave.PosRuleOutputs.POSLO]);
              _out_select_list.Add(selector);
              selector = new CboSelector((int)Slave.PosRuleOutputs.POSHI,
                                 Strings.fuzzyPosRuleStrings[(int)Slave.PosRuleOutputs.POSHI]);
              _out_select_list.Add(selector);

              return _out_select_list;
        }