private void StartNextRound() { if (Rounds.IsNullOrEmpty()) { return; } if (CurrentRoundIndex <= Rounds.Count) { Timer.StartRound(Rounds[CurrentRoundIndex - 1]); } else { CurrentRoundIndex = 1; } }
private void SaveRounds() { if (Rounds.IsNullOrEmpty()) { return; } var fileName = FileDialogService.FileNameFromSaveFileDialog(ProgramTexts.FileDialog_XmlFileFilter); if (fileName.IsNullOrEmpty()) { return; } using (var sw = new StreamWriter(fileName)) { var roundsToSerialize = Rounds.Select(x => new RoundSerializable(x)).ToList(); _roundsSerializer.Serialize(sw, roundsToSerialize); } }