Ejemplo n.º 1
0
 private void PerformActionOnList(IList list, ChangeListAction action,
                                  NotifyCollectionChangedEventArgs collectionChangedArgs, Converter <object, object> converter)
 {
     StopListeningForChangeEvents(list);
     action(list, collectionChangedArgs, converter);
     ListenForChangeEvents(list);
 }
Ejemplo n.º 2
0
 private void PerformActionOnAllLists(ChangeListAction action, IList sourceList, NotifyCollectionChangedEventArgs collectionChangedArgs)
 {
     if (ReferenceEquals(sourceList, this._masterList))
     {
         this.PerformActionOnList(this._targetList, action, collectionChangedArgs, this.ConvertFromMasterToTarget);
     }
     else
     {
         this.PerformActionOnList(this._masterList, action, collectionChangedArgs, this.ConvertFromTargetToMaster);
     }
 }
Ejemplo n.º 3
0
 private void PerformActionOnAllLists(ChangeListAction action, IList sourceList, NotifyCollectionChangedEventArgs collectionChangedArgs)
 {
     if (sourceList == _masterList)
     {
         PerformActionOnList(_targetList, action, collectionChangedArgs, ConvertFromMasterToTarget);
     }
     else
     {
         PerformActionOnList(_masterList, action, collectionChangedArgs, ConvertFromTargetToMaster);
     }
 }
Ejemplo n.º 4
0
 private void PerformActionOnAllLists(ChangeListAction action, IEnumerable sourceList,
                                      NotifyCollectionChangedEventArgs collectionChangedArgs)
 {
     if (Equals(sourceList, masterList))
     {
         PerformActionOnList(targetList, action, collectionChangedArgs, ConvertFromMasterToTarget);
     }
     else
     {
         PerformActionOnList(masterList, action, collectionChangedArgs, ConvertFromTargetToMaster);
     }
 }
 private void PerformActionOnList(IList list, ChangeListAction action, NotifyCollectionChangedEventArgs collectionChangedArgs, Converter<object, object> converter)
 {
     StopListeningForChangeEvents(list);
     action(list, collectionChangedArgs, converter);
     ListenForChangeEvents(list);
 }
 private void PerformActionOnAllLists(ChangeListAction action, IList sourceList, NotifyCollectionChangedEventArgs collectionChangedArgs)
 {
     if (sourceList == _masterList)
     {
         PerformActionOnList(_targetList, action, collectionChangedArgs, ConvertFromMasterToTarget);
     }
     else
     {
         PerformActionOnList(_masterList, action, collectionChangedArgs, ConvertFromTargetToMaster);
     }
 }
Ejemplo n.º 7
0
 void PerformActionOnList(IList list, ChangeListAction action, NotifyCollectionChangedEventArgs collectionChangedArgs)
 {
     StopListeningForChangeEvents(list);
     action(list, collectionChangedArgs);
     ListenForChangeEvents(list);
 }
Ejemplo n.º 8
0
 void PerformActionOnAllLists(ChangeListAction action, IList sourceList, NotifyCollectionChangedEventArgs collectionChangedArgs)
 {
     PerformActionOnList(sourceList == _masterList ? _targetList : _masterList, action, collectionChangedArgs);
 }