C# 클래스 Popcorn.ViewModels.Main.MainViewModel

Main applcation's viewmodel
상속: ViewModelBase
파일 보기 프로젝트 열기: bbougot/Popcorn

공개 메소드들

메소드 설명
MainViewModel ( IGenresViewModel genresViewModel, IMovieService movieService, IMovieHistoryService movieHistoryService, IApplicationState applicationState ) : System

Initializes a new instance of the MainViewModel class.

비공개 메소드들

메소드 설명
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

메소드 상세

MainViewModel() 공개 메소드

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
리턴 System