Example #1
0
 void BuzzHelper_PressBuzz(object sender, PressBuzzBuzzerEventArgs e)
 {
     if (WaitForPlayer != null && CurrentDialog != null)
     {
         WaitForPlayer.Button = e.PressButton;
         CurrentDialog.Destroy();
     }
 }
Example #2
0
 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();
     }
 }