public void GoToPuzzlePage() { var model = new PuzzleViewModel(); var page = new PuzzlePage(model); NavigationService.Navigate(page); }
/// <summary> /// Generate new puzzles until the player has collected as many symbols as chars in Encrypted name. /// When player has collected all symbols-> Navigate to new ViewModel /// </summary> private void ChangePage() { if (PuzzleCounter == MyKiller.KillerName.Length) { var model = new SolvePuzzleViewModel(totalSeconds); var page = new SolvePuzzlePage(model); NavigationService.Navigate(page); } else { CountNumbeOfSymbols--; var model = new PuzzleViewModel(totalSeconds, PuzzleCounter, PuzzlesForGame); var page = new PuzzlePage(model); NavigationService.Navigate(page); } }