예제 #1
0
 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);
     }
 }
예제 #2
0
 private void unsubscribeAreas(IAGSBindingList <IArea> areas)
 {
     areas.OnListChanged.Unsubscribe(onAreaListChanged);
     unsubscribeAreas((IEnumerable <IArea>)areas);
 }
예제 #3
0
 public AGSTreeNode(TItem node = null, IAGSBindingList <TItem> children = null)
 {
     OnParentChanged = new AGSEvent();
     _children       = children ?? new AGSBindingList <TItem>(5);
     Node            = node;
 }