예제 #1
0
 internal PObjectContainerEventArgs(PObjectContainerAction action, string key, PObject oldItem, PObject newItem)
 {
     Action  = action;
     Key     = key;
     OldItem = oldItem;
     NewItem = newItem;
 }
예제 #2
0
        protected void OnCollectionChanged(PObjectContainerAction action, string key, PObject oldChild, PObject newChild)
        {
            if (SuppressChangeEvents)
            {
                return;
            }

            CollectionChanged?.Invoke(this, new PObjectContainerEventArgs(action, key, oldChild, newChild));

            OnChanged(EventArgs.Empty);

            if (Parent != null)
            {
                Parent.OnCollectionChanged(Key, this);
            }
        }