/// <summary> /// Selects the output path. /// </summary> public void SelectFile() { var owner = new Win32WindowHandle(Application.Current.MainWindow); var dialog = new System.Windows.Forms.SaveFileDialog() { Title = "Select 'Flush To' file", DefaultExt = ".txt" }; if (dialog.ShowDialog(owner) == System.Windows.Forms.DialogResult.OK) { FlushToFilePath = dialog.FileName; } }
/// <summary> /// Selects the output path. /// </summary> public void SelectOutputPath() { var info = new DirectoryInfo(Model.OutputPath); var owner = new Win32WindowHandle(Application.Current.MainWindow); var dialog = new System.Windows.Forms.FolderBrowserDialog { Description = "Select Output Path", SelectedPath = info.FullName, ShowNewFolderButton = true, }; if (dialog.ShowDialog(owner) == System.Windows.Forms.DialogResult.OK) { Model.OutputPath = dialog.SelectedPath; Runtime.OutputFolderPath = Model.OutputPath; } }