private List <DataViewModelBase <T> > GetDataViewModelCollection(CatalogBase <T> catalog) { List <DataViewModelBase <T> > items = new List <DataViewModelBase <T> >(); foreach (T obj in catalog.All) { items.Add(CreateDataViewModel(obj)); } return(items); }
/// <summary> /// Create the page view model object, with reference /// to a catalog object. /// </summary> protected PageViewModelBase(CatalogBase <T> catalog) { _catalog = catalog; _itemSelected = null; }