/// <summary>Handles the GameOverEvent event.</summary> /// <param name="message">The message.</param> public void Handle(GameOverEvent message) { if (message.Get()) { if (Int32.Parse(gameScore) > Properties.Settings.Default.highScore) { Properties.Settings.Default.highScore = Int32.Parse(gameScore); Properties.Settings.Default.Save(); } menu = Visibility.Hidden; lost = Visibility.Visible; lostDialogue = "Your Score: " + gameScore + " " + "High Score: " + Properties.Settings.Default.highScore; } else { lost = Visibility.Hidden; } }