C# Class Popcorn.ViewModels.Main.MainViewModel

Main applcation's viewmodel
Inheritance: ViewModelBase
Afficher le fichier Open project: bbougot/Popcorn

Méthodes publiques

Méthode Description
MainViewModel ( IGenresViewModel genresViewModel, IMovieService movieService, IMovieHistoryService movieHistoryService, IApplicationState applicationState ) : System

Initializes a new instance of the MainViewModel class.

Private Methods

Méthode Description
LoadTabsAsync ( ) : System.Threading.Tasks.Task

Load tabs asynchronously

ManageException ( Exception exception ) : void

Manage an exception

OnUnhandledException ( object sender, UnhandledExceptionEventArgs e ) : void

Display a dialog on unhandled exception

OnWindowStateChanged ( Popcorn.Events.WindowStateChangedEventArgs e ) : void

Fire when window state has changed

RegisterCommands ( ) : void

Register commands

RegisterMessages ( ) : void

Register messages

SearchMovies ( string criteria ) : System.Threading.Tasks.Task

Search for movie with a criteria

StartUpdateProcessAsync ( ) : System.Threading.Tasks.Task

Look for update then download and apply if any

Method Details

MainViewModel() public méthode

Initializes a new instance of the MainViewModel class.
public MainViewModel ( IGenresViewModel genresViewModel, IMovieService movieService, IMovieHistoryService movieHistoryService, IApplicationState applicationState ) : System
genresViewModel IGenresViewModel Instance of GenresViewModel
movieService IMovieService Instance of MovieService
movieHistoryService IMovieHistoryService Instance of MovieHistoryService
applicationState IApplicationState Instance of ApplicationState
Résultat System