protected string BrowseForFolderInternal(string selectedPath = null, string title = null) { WpfCustomDialogManager.ConfirmAccess(); var dialog = new VistaFolderBrowserDialog { SelectedPath = selectedPath, Description = title }; return(dialog.ShowDialog() == true ? dialog.SelectedPath : null); }
protected string BrowseForFileInternal(string initialDirectory = null, string title = null, string defaultExt = null, bool checkFileExists = true) { WpfCustomDialogManager.ConfirmAccess(); var dialog = new OpenFileDialog { InitialDirectory = initialDirectory, DefaultExt = defaultExt, CheckFileExists = checkFileExists, Title = title }; return(dialog.ShowDialog() == true ? dialog.FileName : null); }