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

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

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