예제 #1
0
        private void CollectionChanged(object sender, CollectionChangeEventArgs e)
        {
            IObjectView target = (IObjectView)this._viewWeak.Target;

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

            if (view != null)
            {
                view.CollectionChanged(sender, e);
            }
            else
            {
                CleanUpListener();
            }
        }