public override void ViewDidLoad() { base.ViewDidLoad(); easter = new Easter(this.View, new EggsToGo.KonamiCode(), new EggsToGo.MortalKombatCode()); easter.CommandDetected += cmd => InvokeOnMainThread(() => labelLastCommand.Text = cmd.Value); easter.EggDetected += (egg) => { var av = new UIAlertView("Cheater!", "You used the " + egg.Name + " Code!", null, "OK", null); av.Show(); }; }
public override void ViewDidLoad() { base.ViewDidLoad (); easter = new Easter (this.View, new EggsToGo.KonamiCode (), new EggsToGo.MortalKombatCode ()); easter.CommandDetected += cmd => InvokeOnMainThread(() => labelLastCommand.Text = cmd.Value); easter.EggDetected += (egg) => { var av = new UIAlertView("Cheater!", "You used the " + egg.Name + " Code!", null, "OK", null); av.Show(); }; }