public void SelectFileExecute() { fileDialogService.DialogType = FileDialogType.Save; fileDialogService.Filter = "Excel files (*.xslx)|*.xlsx"; if (fileDialogService.ShowDialog() != true) { return; } Settings.ServiceAccounting.ReportPath = fileDialogService.FileName; }