Пример #1
0
        private static Alert GetAlert(OpenCbsReader pReader, char pType)
        {
            int i = 0;
            var alert = new Alert();

            while (i < pReader.FieldCount)
            {
                alert.AddParameter(pReader.GetName(i), pReader.GetValue(i));
                i++;
            }

            alert.Type = pType;
            return alert;
        }