/// <summary> Raises the <see cref="TreeChanged"/> event in this and all overlying instances. /// </summary> protected void OnTreeChanged() { var eventArgs = new TreeChangedEventArgs(this); OnTreeChanged(eventArgs); BusinessObjectTreeHelper.OnTreeChanged(this, eventArgs); }
/// <summary> Raises the <see cref="TreeChanged"/> event in this and all overlying instances. /// </summary> /// <param name="e">The <see cref="TreeChangedEventArgs"/> instance containing the event data.</param> /// <seealso cref="docːObjectBM.TreeChangedˑexample1"/> protected virtual void OnTreeChanged(TreeChangedEventArgs e) { if (TreeChanged != null) { BusinessObjectTreeHelper.OnTreeChanged(TreeChanged, this, e); } var p = this.Parent; while (p != null) { if (p is ObjectBM) { ((ObjectBM)Parent).OnTreeChanged(e); break; } else { //EventUtil.Raise(p.TreeChanged,..); throw new NotImplementedException("{D070E402-AD00-4653-8B60-350EC9E2FAF4}"); } //p = (IObjectBM) p.Parent; } }