Ejemplo n.º 1
0
 public DeleteViewModel()
 {
     GoDeleteMovie        = new RelayCommand <Page>(GoDeleteMovieExecute);
     CommandSearchByTitle = new RelayCommand(CommandSearchByTitleExecute, CommandSearchByTitleCanExecute);
     CommandSearchByType  = new RelayCommand(CommandSearchByTypeExecute, CommandSearchByTypeCanExecute);
     Messenger.Default.Register <MovieNET.User>(this, (user_co) =>
     {
         ListMovie = serviceClient.SelectAllMovie();
     });
 }
Ejemplo n.º 2
0
 public ListViewModel()
 {
     CommandViewMovie = new RelayCommand <Page>(CommandViewMovieExecute);
     Messenger.Default.Register <MovieNET.User>(this, (user_co) =>
     {
         ListMovie = serviceClient.SelectAllMovie();
         User_co   = user_co;
     });
 }