private async void ExportToolButton_OnClick(object sender, RoutedEventArgs e) { var result = await _toolService.Export(); var dialog = new SaveFileDialog { FileName = "ToolExport.csv" }; if (dialog.ShowDialog() == true) { File.WriteAllText(dialog.FileName, result, Encoding.UTF8); Process.Start(dialog.FileName); } }