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; }
private void SetFoulIndicators(FoulChangeEventArgs e) { txtHomeFouls.Text = e.GameFouls.HomeFouls().ToString(); txtAwayFouls.Text = e.GameFouls.AwayFouls().ToString(); }
private void ControllerForm_FoulsChange(object sender, FoulChangeEventArgs e) { SetFoulIndicators(e); SetFoulBonusIndicators(e); }
private void FoulControllerTests_FoulsChanged(object sender, FoulChangeEventArgs e) { methodWasCalled = true; }