예제 #1
0
 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
        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));
        }