void BuzzHelper_PressBuzz(object sender, PressBuzzBuzzerEventArgs e) { if (WaitForPlayer != null && CurrentDialog != null) { WaitForPlayer.Button = e.PressButton; CurrentDialog.Destroy(); } }
void BuzzerHelper_PressBuzz(object sender, PressBuzzBuzzerEventArgs e) { if (players.Player1.Button == e.PressButton) { foreach (var c in ((Container)PlayerOne).Children) { c.ModifyFg(StateType.Normal, new Gdk.Color(0, 125, 0)); } } else if (players.Player2.Button == e.PressButton) { foreach (var c in ((Container)PlayerTwo).Children) { c.ModifyFg(StateType.Normal, new Gdk.Color(0, 125, 0)); } } else { MessageBus.Instance.BuzzHelper.WaitForPress(); } }