private void SaveTournaments() { var settings = new UserSettings(); var filename = _saveFileDialogService.ShowSaveFileDialog(); if (!string.IsNullOrEmpty(filename)) { _tournamentRepository.SaveAsXml(filename); _infoDialogService.ShowDialog(new InfoDialogViewModel("Turnaukset tallennettu tiedostoon " + filename)); } }
private void SaveSessions() { var settings = new UserSettings(); var filename = _saveFileDialogService.ShowSaveFileDialog(); if (!string.IsNullOrEmpty(filename)) { _sessionRepository.SaveAsXml(filename); _infoDialogService.ShowDialog(new InfoDialogViewModel("Käteissessiot tallennettu tiedostoon " + filename)); } }