public EntityListSubscriptions(IAGSBindingList <TEntity> list, bool isTree, Action onTreeChange, params IEntitySubscription[] subscriptions) { _list = list; _subscriptions = subscriptions; _isTree = isTree; _onTreeChange = onTreeChange; list.OnListChanged.Subscribe(onListChanged); foreach (var entity in list) { subscribeEntity(entity); } }
private void unsubscribeAreas(IAGSBindingList <IArea> areas) { areas.OnListChanged.Unsubscribe(onAreaListChanged); unsubscribeAreas((IEnumerable <IArea>)areas); }
public AGSTreeNode(TItem node = null, IAGSBindingList <TItem> children = null) { OnParentChanged = new AGSEvent(); _children = children ?? new AGSBindingList <TItem>(5); Node = node; }