internal PObjectContainerEventArgs(PObjectContainerAction action, string key, PObject oldItem, PObject newItem) { Action = action; Key = key; OldItem = oldItem; NewItem = newItem; }
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); } }