Beispiel #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);
 }
Beispiel #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));
        }