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 SearchParametersViewModel(TagSearch search) { TagSearch = search; Name = new NonRequiredStringInputField("Name", 0, 32); Artist = new NonRequiredStringInputField("Artist", 0, 32); Album = new NonRequiredStringInputField("Album", 0, 32); Author = new NonRequiredStringInputField("Author", 0, 32); Rating = 0; }