Пример #1
0
        private INakedObjectAdapter RecreateViewModel(ViewModelOid oid)
        {
            string[]            keys = oid.Keys;
            var                 spec = (IObjectSpec)oid.Spec;
            INakedObjectAdapter vm   = CreateViewModel(spec);

            vm.Spec.GetFacet <IViewModelFacet>().Populate(keys, vm, nakedObjectManager, injector);
            nakedObjectManager.UpdateViewModel(vm, keys);
            return(vm);
        }