Beispiel #1
0
        public void setLeadConfiguration(string[] myLeadConfig)
        {
            if (myLeadConfig.Length != LeadConfiguration.Length)
            {
                LeadConfiguration = new LeadType[myLeadConfig.Length];
            }

            for (int i = 0; i < myLeadConfig.Length; i++)
            {
                LeadConfiguration[i] = (LeadType)ECGConverter.EnumParse(typeof(LeadType), myLeadConfig[i], true);
            }
        }
Beispiel #2
0
        public bool _ConfigurationWorks()
        {
            try
            {
                ECGConverter.EnumParse(typeof(EncodingType), _Config["Compression Type"], true);

                int ddm = int.Parse(_Config["Difference Data Median"]),
                    ddr = int.Parse(_Config["Difference Data Rhythm"]);

                if ((ddm >= 0) &&
                    (ddm <= 2) &&
                    (ddr >= 0) &&
                    (ddr <= 2) &&
                    ((_Config["Use Lead Measurements"] == null) ||
                     (string.Compare(_Config["Use Lead Measurements"], "true", true) == 0) ||
                     (string.Compare(_Config["Use Lead Measurements"], "false", true) == 0)))
                {
                    string temp1 = _Config["Bimodal Comppression Rate"];

                    if (temp1 == null)
                    {
                        return(true);
                    }

                    int temp2 = int.Parse(temp1);

                    switch (temp2)
                    {
                    case 1:
                    case 2:
                    case 4:
                        return(true);

                    default:
                        break;
                    }
                }
            }
            catch {}

            return(false);
        }