Esempio n. 1
0
        public aECGAnnotation this[string code]
        {
            get
            {
                for (int i = 0; i < Annotation.Length; i++)
                {
                    if (Annotation[i] == null)
                    {
                        break;
                    }

                    if (string.Compare(code, Annotation[i].Code.Code) == 0)
                    {
                        return(Annotation[i]);
                    }
                    else
                    {
                        aECGAnnotation ann = Annotation[i][code];

                        if (ann != null)
                        {
                            return(ann);
                        }
                    }
                }

                return(null);
            }
        }
Esempio n. 2
0
        public aECGAnnotation this[string code]
        {
            get
            {
                foreach (aECGAnnotation ann in Annotation)
                {
                    if (ann == null)
                    {
                        break;
                    }

                    if (string.Compare(code, ann.Code.Code) == 0)
                    {
                        return(ann);
                    }
                    else
                    {
                        aECGAnnotation ann2 = ann[code];

                        if (ann2 != null)
                        {
                            return(ann2);
                        }
                    }
                }

                return(null);
            }
        }
Esempio n. 3
0
        public aECGAnnotation[] getAnnotations(string code)
        {
            ArrayList al = new ArrayList();

            foreach (aECGAnnotationSet ann in Annotation)
            {
                if (ann == null)
                {
                    break;
                }

                aECGAnnotation[] annList = ann.getAnnotations(code);

                if (annList != null)
                {
                    al.AddRange(annList);
                }
            }

            if (al.Count > 0)
            {
                aECGAnnotation[] ret = new aECGAnnotation[al.Count];

                for (int i = 0; i < ret.Length; i++)
                {
                    ret[i] = (aECGAnnotation)al[i];
                }

                return(ret);
            }

            return(null);
        }
Esempio n. 4
0
        public bool Add(aECGAnnotation ann)
        {
            for (int i = 0; i < Annotation.Length; i++)
            {
                if (Annotation[i] == null)
                {
                    Annotation[i] = ann;

                    return(true);
                }
                else if (Annotation[i] == ann)
                {
                    return(true);
                }
            }

            return(false);
        }
Esempio n. 5
0
        public aECGAnnotation getAnnotation(string code)
        {
            foreach (aECGAnnotationSet aset in Annotation)
            {
                if (aset == null)
                {
                    return(null);
                }

                aECGAnnotation ann = aset[code];

                if (ann != null)
                {
                    return(ann);
                }
            }

            return(null);
        }
Esempio n. 6
0
        public aECGAnnotationSet getAnnotationSet(string code)
        {
            foreach (aECGAnnotationSet aset in Annotation)
            {
                if (aset == null)
                {
                    return(null);
                }
                if (string.Compare(aset.Code.Code, code) == 0)
                {
                    return(aset);
                }

                aECGAnnotation ann = aset[code];

                if (ann != null)
                {
                    return(aset);
                }
            }

            return(null);
        }