Add filtering to file browser

This commit is contained in:
2017-02-01 08:23:44 +01:00
parent fc134080d6
commit 1fbb85c101

View File

@@ -17,6 +17,8 @@ namespace CsvView
{
OpenFileDialog loadDialog = new OpenFileDialog();
loadDialog.InitialDirectory = Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location);
loadDialog.DefaultExt = "csv";
loadDialog.Filter = "CSV Files|*.csv|Any File|*";
DialogResult result = loadDialog.ShowDialog();
if (result == DialogResult.OK)
{