19 using System.Windows.Forms;
36 Logger.Info(
"ChooseFolderAction.GetDialogResult");
37 FolderBrowserDialog dlg =
new FolderBrowserDialog();
38 dlg.SelectedPath = defaultString;
39 dlg.ShowNewFolderButton =
true;
40 dlg.Description = Description;
41 if (dlg.ShowDialog() == DialogResult.OK)
43 return dlg.SelectedPath;
53 private static NLog.Logger Logger {
get {
return _logger.Value; } }
55 private static readonly Lazy<
NLog.Logger> _logger =
new Lazy<
NLog.Logger>(() =>
NLog.LogManager.GetCurrentClassLogger());
MVVM action that queries the user for a folder.
override string GetDialogResult(string defaultString, string filter)
Displays an dialog to choose file or folder names.
Abstract base class for the ChooseFileSaveAction and ChooseFolderAction classes.