예제 #1
0
        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);
        }
예제 #2
0
 /// <summary>
 /// Create the page view model object, with reference
 /// to a catalog object.
 /// </summary>
 protected PageViewModelBase(CatalogBase <T> catalog)
 {
     _catalog      = catalog;
     _itemSelected = null;
 }