private void SaveAs() { var sfd = new SaveFileDialog() { Filter = "XAML files|*.xaml|All files|*.*" }; if (sfd.ShowDialog(this) == true) { CurrentLanguageDocument.SaveDocument(sfd.FileName); FilePath = sfd.FileName; } }
private void SaveAs() { if (SelectedCultureInfo == null) { MessageBoxEx.Show(Application.Current.MainWindow, "No culture selected", "Error", MessageBoxButton.OK); return; } var sfd = new SaveFileDialog { Filter = "XAML files|*.xaml|All files|*.*", FileName = $"OrcusAdministration.{SelectedCultureInfo.Name}" }; if (sfd.ShowDialog(Application.Current.MainWindow) == true) { CurrentLanguageDocument.SaveDocument(sfd.FileName); FilePath = sfd.FileName; MessageBoxEx.Show(Application.Current.MainWindow, "Document saved", "Success", MessageBoxButton.OK); } }