コード例 #1
0
ファイル: UIServices.cs プロジェクト: jacksonh/nuget
 public bool OpenFolderDialog(string title, string initialPath, out string selectedPath)
 {
     BrowseForFolder dialog = new BrowseForFolder();
     selectedPath = dialog.SelectFolder(
         title,
         initialPath,
         new System.Windows.Interop.WindowInteropHelper(Window.Value).Handle);
     return !String.IsNullOrEmpty(selectedPath);
 }
コード例 #2
0
ファイル: UIServices.cs プロジェクト: lazlojuly/nuget
        public bool OpenFolderDialog(string title, string initialPath, out string selectedPath)
        {
            BrowseForFolder dialog = new BrowseForFolder();

            selectedPath = dialog.SelectFolder(
                title,
                initialPath,
                new System.Windows.Interop.WindowInteropHelper(Window.Value).Handle);
            return(!String.IsNullOrEmpty(selectedPath));
        }