private void UpdateDocument() { if (DetailsVM.SelectedDocument != null) { if (DocumentCreationVM == null) { DocumentCreationVM = new DocumentCreationVM(this); } DocumentCreationVM.TitleHeader = "РЕДАКТИРОВНИЕ ДОКУМЕНТА"; DocumentCreationVM.CurrentNode = SelectedNodeVM; DocumentCreationVM.CurrentPresentation = settings.presentation; DocumentCreationVM.UploadDocumentParams(DetailsVM.SelectedDocument.Document); if (settings.presentation == PresentationEnum.Archive) { DocumentCreationVM.ArchivePresentVis = Visibility.Visible; } DocumentCreationVM.DocumentPanelVis = Visibility.Visible; } else { MessagesService.Show("РЕДАКТИРОВАНИЕ ДОКУМЕНТА", "Не выбрана ветка"); } }
private void Init(PresentationEnum present, List <string> nodesList) { this.settings = new PresentTreeSettings() { presentation = present }; DisplayName = settings.presentation.GetName(); NodeVMs = ConvertToNodes(nodesList, 1); DetailsVM = new PresentDetailVM(this, settings.presentation); DocumentCreationVM = new DocumentCreationVM(this); DetailsInfoVM = new DetailsInfoVM(); }