示例#1
0
        public bool Add(aECGAnnotationSet aset)
        {
            for (int i = 0; i < Annotation.Length; i++)
            {
                if (Annotation[i] == null)
                {
                    Annotation[i] = aset;
                    return(true);
                }
                else if (Annotation[i] == aset)
                {
                    return(true);
                }
            }

            return(false);
        }
示例#2
0
        public aECGAnnotationSet getAnnotationSet(string[] code)
        {
            if (code == null)
            {
                return(null);
            }

            foreach (string c in code)
            {
                aECGAnnotationSet anns = getAnnotationSet(c);

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

            return(null);
        }