C# Class WatchThis.Controllers.SlideshowDriver

Responsible for loading and playing slideshows, though delegating to a viewer for the actual image display. All calls to the viewer are on the main/UI thread in order to minimize threading issues in the various UI implementations.
Inheritance: INotifyPropertyChanged
Show file Open project: kevintavog/WatchThis.net Class Usage Examples

Private Properties

Property Type Description
BeginEnumerate void
DestroyTimer void
GetTimerValue double
LogFailedTask void
NextRandom WatchThis.Models.MediaItem
NextSlide void
ResetTimer void
SetupTimer void
ShowImage void
SlideshowDriver NLog

Public Methods

Method Description
Create ( SlideshowModel model, ISlideshowViewer viewer, IPlatformService platformService ) : SlideshowDriver
Create ( string filename, ISlideshowViewer viewer, IPlatformService platformService ) : SlideshowDriver
Next ( ) : void
PauseOrResume ( ) : void
Play ( ) : void
Previous ( ) : void
Stop ( ) : void

Private Methods

Method Description
BeginEnumerate ( ) : void
DestroyTimer ( ) : void
GetTimerValue ( ) : double
LogFailedTask ( System.Threading.Tasks.Task t, string baseMessage ) : void
NextRandom ( ) : MediaItem
NextSlide ( ) : void
ResetTimer ( ) : void
SetupTimer ( ) : void
ShowImage ( MediaItem item ) : void
SlideshowDriver ( SlideshowModel model, ISlideshowViewer viewer, IPlatformService platformService ) : NLog

Method Details

Create() static public method

static public Create ( SlideshowModel model, ISlideshowViewer viewer, IPlatformService platformService ) : SlideshowDriver
model WatchThis.Models.SlideshowModel
viewer ISlideshowViewer
platformService IPlatformService
return SlideshowDriver

Create() static public method

static public Create ( string filename, ISlideshowViewer viewer, IPlatformService platformService ) : SlideshowDriver
filename string
viewer ISlideshowViewer
platformService IPlatformService
return SlideshowDriver

Next() public method

public Next ( ) : void
return void

PauseOrResume() public method

public PauseOrResume ( ) : void
return void

Play() public method

public Play ( ) : void
return void

Previous() public method

public Previous ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void