Exemple #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 ArmorDocumentView();
                var vm = new ArmorDocumentVM(this, view.CommandBindings, tankInstance, persistentInfo);
                view.ViewModel = vm;

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