From c13b9bb12ebeaab178d0c9db1e0c4139394cb0c3 Mon Sep 17 00:00:00 2001 From: morkt Date: Sat, 26 Jul 2014 23:22:58 +0400 Subject: [PATCH] refined filename choose dialog properties. --- CreateArchive.xaml.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CreateArchive.xaml.cs b/CreateArchive.xaml.cs index 98d25107..6d95c9e1 100644 --- a/CreateArchive.xaml.cs +++ b/CreateArchive.xaml.cs @@ -82,9 +82,14 @@ namespace GARbro.GUI } dir = Path.GetFullPath (dir); var dlg = new OpenFileDialog { + AddExtension = true, + CheckFileExists = false, + CheckPathExists = true, + FileName = initial, + Filter = GetFilters(), InitialDirectory = dir, Multiselect = false, - Filter = GetFilters(), + Title = guiStrings.TextChooseArchive, }; return dlg.ShowDialog (this).Value ? dlg.FileName : null; }