public BaseModelCollection(BaseViewModelFactory <T> fac, Action <T> select_action)
        {
            Collection = new ObservableCollection <IViewModel <T> >();
            factory    = fac;
            action     = select_action;

            factory.setSelectDelegate(handleSelected);
        }
Beispiel #2
0
        public SearchPage(SearchParametersViewModel search, BaseViewModelFactory <SongModel> factory)
        {
            Search  = search;
            Results = new BaseModelCollection <SongModel>(factory, handleSongSelected);

            initFields();
            initCommands();
        }
Beispiel #3
0
 public AccountRatingsView(UserModel m, BaseViewModelFactory <RatingModel> factory)
 {
     model   = m;
     Ratings = new BaseModelCollection <RatingModel>(factory, handleRatingSelected);
     populateRatings();
 }