예제 #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 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;
        }