Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
0
 public AccountRatingsView(UserModel m, BaseViewModelFactory <RatingModel> factory)
 {
     model   = m;
     Ratings = new BaseModelCollection <RatingModel>(factory, handleRatingSelected);
     populateRatings();
 }