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(); }); }
public ListViewModel() { CommandViewMovie = new RelayCommand <Page>(CommandViewMovieExecute); Messenger.Default.Register <MovieNET.User>(this, (user_co) => { ListMovie = serviceClient.SelectAllMovie(); User_co = user_co; }); }