string logFileName = string.Empty; FolderBrowserDialog fbd = new FolderBrowserDialog(); if (fbd.ShowDialog() == System.Windows.Forms.DialogResult.OK) logFileName = CheckLogFile(fbd.SelectedPath); else return; if (!string.IsNullOrEmpty(logFileName)) LogFileName = Path.Combine(fbd.SelectedPath, logFileName); else { Microsoft.Win32.SaveFileDialog sfd = new Microsoft.Win32.SaveFileDialog(); if (sfd.ShowDialog() == true) { LogFileName = sfd.FileName; } }
SaveFileDialog
Microsoft.Win32.SaveFileDialog
System.Windows.Forms.SaveFileDialog
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)