Skip to content

Instantly share code, notes, and snippets.

@clausjoergensen
Created October 23, 2011 17:30
Show Gist options
  • Save clausjoergensen/1307612 to your computer and use it in GitHub Desktop.
Save clausjoergensen/1307612 to your computer and use it in GitHub Desktop.
private static void AchievementContext_AchievementsUnlocked(object sender, AchievementEventArgs args)
{
if (args.UnlockedAchievements.Any())
{
Debug.WriteLine(string.Format("Achievements unlocked: {0}",
string.Join(", ", args.UnlockedAchievements.Select(a => "[" + a.Name + "]"))));
Dispatcher.CurrentDispatcher.BeginInvoke(new Action(() =>
{
AchievementNotificationBox.ShowAchievements(args.UnlockedAchievements);
}));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment