Beispiel #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);
            }
        }
Beispiel #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);
            }
        }
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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);
        }