Beispiel #1
0
 /// <summary>
 /// Create the MasterDetails view model object, with
 /// references to a model object and a factory object
 /// </summary>
 protected MasterDetailsViewModelBase(
     ViewModelFactoryBase <TDomainClass, TKey> factory,
     ModelBase <TDomainClass, TKey> model)
 {
     _factory               = factory;
     _model                 = model;
     _masterViewModel       = factory.CreateMasterViewModel();
     _deleteCommand         = new RelayCommand(DoDelete, CanDelete);
     _itemViewModelSelected = null;
 }