Exemplo n.º 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);
        }
Exemplo n.º 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;
 }