private SearchPage createSearchPage() { var tag = new TagSearch(APIRequest.getAllTags().GetAwaiter().GetResult().Items); var parameters = new SearchParametersViewModel(tag); var factory = new SongVMFactory(); return(new SearchPage(parameters, factory)); }
public SearchPage(SearchParametersViewModel search, BaseViewModelFactory <SongModel> factory) { Error = String.Empty; Search = search; Results = new BaseModelCollection <SongModel>(factory, handleSongSelected); SearchCommand = new RelayCommand(handleSearch); ClearCommand = new RelayCommand(handleClear); }