public ErPrSemiQuantitativeResult GetResult(string erResult, string prResult)
        {
            ErPrSemiQuantitativeResult result = new ErPrSemiQuantitativeResult();

            if (erResult == "Not Performed" || prResult == "Not Performed") result = new ErPrSemiQuantitativeNotPreformedResult();
            else
            {
                foreach (ErPrSemiQuantitativeResult erPrSemiQuantitativeResult in this)
                {
                    if (erPrSemiQuantitativeResult.ErResult == erResult &&
                        erPrSemiQuantitativeResult.PrResult == prResult)
                    {
                        result = erPrSemiQuantitativeResult;
                        break;
                    }
                }
            }
            return result;
        }
Пример #2
0
        public ErPrSemiQuantitativeResult GetResult(string erResult, string prResult)
        {
            ErPrSemiQuantitativeResult result = new ErPrSemiQuantitativeResult();

            if (erResult == "Not Performed" || prResult == "Not Performed")
            {
                result = new ErPrSemiQuantitativeNotPreformedResult();
            }
            else
            {
                foreach (ErPrSemiQuantitativeResult erPrSemiQuantitativeResult in this)
                {
                    if (erPrSemiQuantitativeResult.ErResult == erResult &&
                        erPrSemiQuantitativeResult.PrResult == prResult)
                    {
                        result = erPrSemiQuantitativeResult;
                        break;
                    }
                }
            }
            return(result);
        }