示例#1
0
        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));
        }
示例#2
0
        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);
        }