void GuessServiceClient_PlayerGuessReceived(object sender, GuessServiceReference.PlayerGuessReceivedEventArgs e) { if (e.guess.GuessNr == -1) { ((GameModel)Resources["gameModel"]).Players.Remove(e.guess.Player); } else ((GameModel)Resources["gameModel"]).Guesses.Insert(0, e.guess); }
void GuessServiceClient_StartGameReceived(object sender, GuessServiceReference.StartGameReceivedEventArgs e) { NavigationService.Navigate(new Uri("\\Game", UriKind.Relative)); }