public void Reroll() { data.RerollCurrent(); data.SetNewGameSectionField(Section); WindowManager = new WindowManager(); NewGameViewModel newGameViewModel = new NewGameViewModel(); while (true) { if (WindowManager.ShowDialog(newGameViewModel) == true) { GameName = newGameViewModel.GameName; data.SetNewGameNameField(GameName); return; } } }
public void Completed() { data.CompleteCurrent(); CompletedGames++; data.AddCompletedGameToSection(Section); if (CompletedGames == LeftGames) { CompletedGames = 0; NextSection(); } data.SetNewGameSectionField(Section); WindowManager = new WindowManager(); NewGameViewModel newGameViewModel = new NewGameViewModel(); while (true) { if (WindowManager.ShowDialog(newGameViewModel) == true) { GameName = newGameViewModel.GameName; data.SetNewGameNameField(GameName); return; } } }