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