示例#1
0
 private void SetFoulBonusIndicators(FoulChangeEventArgs e)
 {
     lightHomeBonus.StateIndex       = e.GameFouls.HomeFouls() > 6 ? 3 : 0;
     lightHomeDoubleBonus.StateIndex = e.GameFouls.HomeFouls() > 9 ? 3 : 0;
     lightAwayBonus.StateIndex       = e.GameFouls.AwayFouls() > 6 ? 3 : 0;
     lightAwayDoubleBonus.StateIndex = e.GameFouls.AwayFouls() > 9 ? 3 : 0;
 }
示例#2
0
 private void SetFoulIndicators(FoulChangeEventArgs e)
 {
     txtHomeFouls.Text = e.GameFouls.HomeFouls().ToString();
     txtAwayFouls.Text = e.GameFouls.AwayFouls().ToString();
 }
示例#3
0
 private void ControllerForm_FoulsChange(object sender, FoulChangeEventArgs e)
 {
     SetFoulIndicators(e);
     SetFoulBonusIndicators(e);
 }
 private void FoulControllerTests_FoulsChanged(object sender, FoulChangeEventArgs e)
 {
     methodWasCalled = true;
 }