コード例 #1
0
 /// <summary>
 /// Create the MasterDetails view model object, with
 /// references to a catalog object and a factory object
 /// </summary>
 protected MasterDetailsViewModelBase(
     CatalogBase <TDomainClass> catalog,
     ViewModelFactoryBase <TDomainClass> factory)
 {
     _catalog = catalog;
     _factory = factory;
     _itemViewModelSelected = null;
     _deleteCommand         = new DeleteCommandBase <TDomainClass, MasterDetailsViewModelBase <TDomainClass> >(_catalog, this);
 }
コード例 #2
0
ファイル: PageViewModelBase.cs プロジェクト: perl-easj/OOProg
 /// <summary>
 /// Create the page view model object, with reference
 /// to a catalog object.
 /// </summary>
 protected PageViewModelBase(CatalogBase <TDomainClass> catalog)
 {
     _catalog       = catalog;
     _itemSelected  = null;
     _deleteCommand = new DeleteCommandBase <TDomainClass, PageViewModelBase <TDomainClass> >(_catalog, this);
 }