C# 클래스 FloydPink.Flickr.Downloadr.UI.Behaviors.TwoListSynchronizer

Keeps two lists synchronized.
상속: IWeakEventListener
파일 보기 프로젝트 열기: flickr-downloadr/flickr-downloadr 1 사용 예제들

공개 메소드들

메소드 설명
ReceiveWeakEvent ( Type managerType, object sender, EventArgs e ) : bool

Receives events from the centralized event manager.

StartSynchronizing ( ) : void

Starts synchronizing the lists.

StopSynchronizing ( ) : void

Stop synchronizing the lists.

TwoListSynchronizer ( IList masterList, IList targetList ) : System

Initializes a new instance of the TwoListSynchronizer class.

TwoListSynchronizer ( IList masterList, IList targetList, IListItemConverter masterTargetConverter ) : System

Initializes a new instance of the TwoListSynchronizer class.

보호된 메소드들

메소드 설명
ListenForChangeEvents ( IList list ) : void

Listens for change events on a list.

StopListeningForChangeEvents ( IList list ) : void

Stops listening for change events.

비공개 메소드들

메소드 설명
AddItems ( IList list, NotifyCollectionChangedEventArgs e, object>.Converter converter ) : void
ConvertFromMasterToTarget ( object masterListItem ) : object
ConvertFromTargetToMaster ( object targetListItem ) : object
HandleCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
MoveItems ( IList list, NotifyCollectionChangedEventArgs e, object>.Converter converter ) : void
PerformActionOnAllLists ( ChangeListAction action, IList sourceList, NotifyCollectionChangedEventArgs collectionChangedArgs ) : void
PerformActionOnList ( IList list, ChangeListAction action, NotifyCollectionChangedEventArgs collectionChangedArgs, object>.Converter converter ) : void
RemoveItems ( IList list, NotifyCollectionChangedEventArgs e, object>.Converter converter ) : void
ReplaceItems ( IList list, NotifyCollectionChangedEventArgs e, object>.Converter converter ) : void
SetListValuesFromSource ( IList sourceList, IList targetList, object>.Converter converter ) : void
TargetAndMasterCollectionsAreEqual ( ) : bool
UpdateListsFromSource ( IList sourceList ) : void

Makes sure that all synchronized lists have the same values as the source list.

메소드 상세

ListenForChangeEvents() 보호된 메소드

Listens for change events on a list.
protected ListenForChangeEvents ( IList list ) : void
list IList The list to listen to.
리턴 void

ReceiveWeakEvent() 공개 메소드

Receives events from the centralized event manager.
public ReceiveWeakEvent ( Type managerType, object sender, EventArgs e ) : bool
managerType System.Type /// The type of the calling this method. ///
sender object Object that originated the event.
e System.EventArgs Event data.
리턴 bool

StartSynchronizing() 공개 메소드

Starts synchronizing the lists.
public StartSynchronizing ( ) : void
리턴 void

StopListeningForChangeEvents() 보호된 메소드

Stops listening for change events.
protected StopListeningForChangeEvents ( IList list ) : void
list IList The list to stop listening to.
리턴 void

StopSynchronizing() 공개 메소드

Stop synchronizing the lists.
public StopSynchronizing ( ) : void
리턴 void

TwoListSynchronizer() 공개 메소드

Initializes a new instance of the TwoListSynchronizer class.
public TwoListSynchronizer ( IList masterList, IList targetList ) : System
masterList IList The master list.
targetList IList The target list.
리턴 System

TwoListSynchronizer() 공개 메소드

Initializes a new instance of the TwoListSynchronizer class.
public TwoListSynchronizer ( IList masterList, IList targetList, IListItemConverter masterTargetConverter ) : System
masterList IList The master list.
targetList IList The target list.
masterTargetConverter IListItemConverter The master-target converter.
리턴 System