20 using System.Windows.Forms;
22 using System.Text.RegularExpressions;
32 protected override FileDialog GetDialog(
36 Logger.Info(
"ChooseFileOpenAction.GetDialog");
37 OpenFileDialog dlg =
new OpenFileDialog();
41 dlg.AddExtension =
true;
42 dlg.RestoreDirectory =
true;
43 dlg.SupportMultiDottedExtensions =
true;
44 dlg.ValidateNames =
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());
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 .
Lets the user choose a file name for opening a file.