private void CollectionChanged(object sender, CollectionChangeEventArgs e) { IObjectView target = (IObjectView)this._viewWeak.Target; if (target != null) { target.CollectionChanged(sender, e); } else { this.CleanUpListener(); } }
private void CollectionChanged(object sender, CollectionChangeEventArgs e) { IObjectView view = (IObjectView)_viewWeak.Target; if (view != null) { view.CollectionChanged(sender, e); } else { CleanUpListener(); } }