Ejemplo n.º 1
0
        public BaseModelCollection(BaseViewModelFactory <T> fac, Action <T> select_action)
        {
            Collection = new ObservableCollection <IViewModel <T> >();
            factory    = fac;
            action     = select_action;

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

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