示例#1
0
        void c5_60_0125W_kOhm_counter(string s, string res, Pribor pribor)
        {
            s = s.Replace('.', ',');
            switch (s)
            {
            case "1,6":
                s = "1,60";
                break;

            case "1,8":
                s = "1,80";
                break;

            default:
                break;
            }
            if (_pki.c5_60_0125W_kOhm.ContainsKey(s))
            {
                _pki.c5_60_0125W_kOhm[s]++;
            }
            else
            {
                _errors++;
                _p_e_numbers.Add(pribor.GetNumber() + "\t" + res + "\t" + s);
            }
        }
示例#2
0
        void c2_29_025W_Ohm_counter(string s, string res, Pribor pribor)
        {
            s = s.Replace('.', ',');
            switch (s)
            {
            case "47":
                s = "47,0";
                break;

            case "75":
                s = "75,0";
                break;

            case "92":
                s = "92,0";
                break;

            default:
                break;
            }

            if (_pki.c2_29_025W_Ohm.ContainsKey(s))
            {
                _pki.c2_29_025W_Ohm[s]++;
            }
            else
            {
                _errors++;
                _p_e_numbers.Add(pribor.GetNumber() + "\t" + res + "\t" + s);
            }
        }
示例#3
0
 void c5_60_1W_Ohm_counter(string s, string res, Pribor pribor)
 {
     s = s.Replace('.', ',');
     if (_pki.c5_60_1W_Ohm.ContainsKey(s))
     {
         _pki.c5_60_1W_Ohm[s]++;
     }
     else
     {
         _errors++;
         _p_e_numbers.Add(pribor.GetNumber() + "\t" + res + "\t" + s);
     }
 }
示例#4
0
        void c2_29_0125W_kOhm_counter(string s, string res, Pribor pribor)
        {
            s = s.Replace('.', ',');
            switch (s)
            {
            case "18,70":
                s = "18,7";
                break;

            case "75":
                s = "75,0";
                break;

            case "6,9":
                s = "6,90";
                break;

            case "7,5":
                s = "7,50";
                break;

            case "9,2":
                s = "9,20";
                break;

            case "10":
                s = "10,0";
                break;

            case "20":
                s = "20,0";
                break;

            default:
                break;
            }

            if (_pki.c2_29_0125W_kOhm.ContainsKey(s))
            {
                _pki.c2_29_0125W_kOhm[s]++;
            }
            else
            {
                _errors++;
                _p_e_numbers.Add(pribor.GetNumber() + "\t" + res + "\t" + s);
            }
        }