Exemple #1
0
        public INakedObjectAdapter CreateViewModel(IObjectSpec spec)
        {
            object viewModel            = CreateObject(spec);
            INakedObjectAdapter adapter = nakedObjectManager.CreateViewModelAdapter(spec, viewModel);

            InitializeNewObject(adapter);
            return(adapter);
        }
        public INakedObjectAdapter CreateViewModel(IObjectSpec spec)
        {
            Log.DebugFormat("CreateViewModel of: {0}", spec);
            object viewModel            = CreateObject(spec);
            INakedObjectAdapter adapter = nakedObjectManager.CreateViewModelAdapter(spec, viewModel);

            InitializeNewObject(adapter);
            return(adapter);
        }