I'm using FolderBrowserDialog
in a WPF project and it works fine, I would like to check the content of the folder selected selectedPath
if is it empty or null and the extension of the existed files.
How can I do that?
try
{
using (var dialog = new System.Windows.Forms.FolderBrowserDialog())
{
System.Windows.Forms.DialogResult result = dialog.ShowDialog();
FileText.Text = dialog.SelectedPath;
}
}
catch (Exception exp)
{
Console.WriteLine("Error : " + exp);
}