private async void ShowSaveFileDialogCommandExecute() { if (_messageDialogManager.ShowSaveFileDialog("Save a file", "", "fileName", ".txt", "Text documents (.txt)|*.txt")) { await _messageDialogManager.ShowInfoDialogAsync("File Selected to Save", _messageDialogManager.FilePathToSave); } else { await _messageDialogManager.ShowInfoDialogAsync("No file has been selected to save", _messageDialogManager.FilePathToSave); } }
private void ExportarExecute() { if (_dialogService.ShowSaveFileDialog("Exportar CSV", "", "export.csv", ".csv", "CSV documents (.csv)|*.csv")) { try { _esterolesLogic.Export(_dialogService.FilePathToSave, Results); } catch (Exception ex) { _dialogService.ShowInfoDialogAsync("Error", $"Error: {ex.Message}"); } } }