internal bool NotifyChanging(object sender, XObjectChangeEventArgs e) { bool notify = false; XObject o = this; while (true) { while (o != null && o.annotations == null) { o = o.parent; } if (o == null) { break; } XObjectChangeAnnotation a = o.Annotation <XObjectChangeAnnotation>(); if (a != null) { notify = true; if (a.changing != null) { a.changing(sender, e); } } o = o.parent; } return(notify); }
internal bool NotifyChanging(object sender, XObjectChangeEventArgs e) { bool flag = false; XObject parent = this; while (true) { while ((parent != null) && (parent.annotations == null)) { parent = parent.parent; } if (parent == null) { return(flag); } XObjectChangeAnnotation annotation = parent.Annotation <XObjectChangeAnnotation>(); if (annotation != null) { flag = true; if (annotation.changing != null) { annotation.changing(sender, e); } } parent = parent.parent; } }