\r
if (this.CurrentTask != null && !string.IsNullOrEmpty(this.CurrentTask.Destination))\r
{\r
- if (Directory.Exists(Path.GetDirectoryName(this.CurrentTask.Destination)))\r
- {\r
- saveFileDialog.InitialDirectory = Path.GetDirectoryName(this.CurrentTask.Destination) + "\\";\r
- }\r
+ saveFileDialog.InitialDirectory = Directory.Exists(Path.GetDirectoryName(this.CurrentTask.Destination))\r
+ ? Path.GetDirectoryName(this.CurrentTask.Destination) + "\\"\r
+ : null;\r
\r
saveFileDialog.FileName = Path.GetFileName(this.CurrentTask.Destination);\r
}\r