public XFMovieSearchPage(MovieServices movieService)
 {
     this._movieService  = movieService;
     this._viewModel     = new MovieListViewModel(this.Navigation, this._movieService);
     this.BindingContext = this._viewModel;
     InitializeComponent();
 }
예제 #2
0
 public MovieListPage(MovieListViewModel viewModel)
 {
     this._viewModel = viewModel;
     this._viewModel.SetNavigation(this.Navigation);
     this.BindingContext = this._viewModel;
     InitializeComponent();
 }
예제 #3
0
 public MovieListPage(List <Movie> movieList, MovieServices movieService)
 {
     this._movieList     = movieList;
     this._movieService  = movieService;
     this._viewModel     = new MovieListViewModel(this.Navigation, this._movieService);
     this.BindingContext = this._viewModel;
     InitializeComponent();
 }