Ejemplo n.º 1
0
        private BaseModelCollection <RatingModel> createRatingView()
        {
            var factory    = new RatingVMFactory();
            var collection = new BaseModelCollection <RatingModel>(factory, handleRatingSelected);

            collection.populateModels(APIRequest.getRatingsByUserId(credentials.CurrentUser.Id).GetAwaiter().GetResult().Items);
            return(collection);
        }
Ejemplo n.º 2
0
        private void createCollections(List <TagModel> all_tags)
        {
            var factory = new TagVMFactory();

            Selected   = new BaseModelCollection <TagModel>(factory, handleTagRemoved);
            Unselected = new BaseModelCollection <TagModel>(factory, handleTagAdded);

            Unselected.populateModels(all_tags);
        }