public void ShowDialog() { if (FolderBrowserDialogService.ShowDialog()) { ResultPath = FolderBrowserDialogService.ResultPath; } }
public void OpenOrCreate(Folder folder) { if (folder.IsNew()) { if (FolderBrowserDialogService.ShowDialog()) { DataModel.OnNewFolder(FolderBrowserDialogService.ResultPath); } return; } IDocument document = DocumentManagerService.FindDocumentByIdOrCreate(folder.Path, svc => svc.CreateDocument("FolderView", folder, this.GetParentViewModel <MainViewModel>())); document.Id = folder.Path; document.Show(); DataModel.OnFolderOpen(folder); }