コード例 #1
0
 public void ShowDialog()
 {
     if (FolderBrowserDialogService.ShowDialog())
     {
         ResultPath = FolderBrowserDialogService.ResultPath;
     }
 }
コード例 #2
0
        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);
        }