19 using System.Windows.Forms;
21 using System.Text.RegularExpressions;
31 protected override FileDialog GetDialog(
35 Logger.Info(
"ChooseFileSaveAction.GetDialog");
36 SaveFileDialog dlg =
new SaveFileDialog();
40 dlg.AddExtension =
true;
41 dlg.RestoreDirectory =
true;
42 dlg.SupportMultiDottedExtensions =
true;
43 dlg.ValidateNames =
true;
45 dlg.OverwritePrompt =
true;
51 private static NLog.Logger Logger {
get {
return _logger.Value; } }
53 private static readonly Lazy<
NLog.Logger> _logger =
new Lazy<
NLog.Logger>(() =>
NLog.LogManager.GetCurrentClassLogger());
Lets the user choose a file name for saving a file.
static string GetDirectoryPart(string path)
Extracts the directory information from path .
Base class for actions that use dialogs based on System.Windows.Forms.FileDialog. ...
static string GetFileNamePart(string path)
Extracts the file name from path .