Ejemplo n.º 1
0
        private BaseViewModel createSearchView()
        {
            var tag        = new TagSearch(APIRequest.getAllTags().GetAwaiter().GetResult().Items);
            var parameters = new SearchParametersViewModel(tag);
            var factory    = new SongVMFactory();

            return(new SearchPage(parameters, factory));
        }
Ejemplo n.º 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;
        }