예제 #1
0
        private void SaveFluentInterfaceInSingleFile_OnClick(object sender, RoutedEventArgs e)
        {
            FolderBrowserDialog dialog =
                new FolderBrowserDialog
            {
                Description         = Literals.SaveFluentInterfaceInSingleFile,
                ShowNewFolderButton = true
            };

            if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                FluentInterfaceFile fluentInterfaceFile =
                    _projectEditorViewModel.FluentInterfaceInSingleFile();

                File.WriteAllText(Path.Combine(dialog.SelectedPath, fluentInterfaceFile.Name), fluentInterfaceFile.FormattedText());
            }
        }