Esempio n. 1
0
        protected override ICreateDocumentTask CreateCreateDocumentTask(IRepository repository,
                                                                        Uri uri,
                                                                        Guid guid,
                                                                        IXQueryable tank,
                                                                        string persistentInfo)
        {
            return(CreateDocumentTask.FromFactory(() =>
            {
                var tankInstance = TankInstanceManager.GetInstance(repository, tank);

                var view = new ModelDocumentView();
                var vm = new ModelDocumentVM(this, view.CommandBindings, tankInstance, persistentInfo);
                view.ViewModel = vm;

                return new DocumentInfo(guid: guid,
                                        repositoryId: repository.ID,
                                        uri: uri,
                                        title: this.L("model_inspector", "document_title", tankInstance.Tank.Name),
                                        content: view,
                                        features: new IFeature[] { vm },
                                        persistentInfoProvider: vm.PersistentInfo);
            }));
        }
Esempio n. 2
0
 public CaptureVM(ModelDocumentVM owner)
     : base(owner)
 {
 }