private void SaveFluentInterfaceInMultipleFiles_OnClick(object sender, RoutedEventArgs e) { FolderBrowserDialog dialog = new FolderBrowserDialog { Description = Literals.SaveFluentInterfaceInMultipleFiles, ShowNewFolderButton = true }; if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) { IEnumerable <FluentInterfaceFile> fluentInterfaceFiles = _projectEditorViewModel.FluentInterfaceInMultipleFiles(); foreach (FluentInterfaceFile file in fluentInterfaceFiles) { File.WriteAllText(Path.Combine(dialog.SelectedPath, file.Name), file.FormattedText()); } } }