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));
            }
        }
Beispiel #2
0
        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));
            }
        }