static void Main1(string[] args) { Ball ball = new Ball(); Pitcher pitcher = new Pitcher(ball); BallEventArgs ballEventArgs = new BallEventArgs(45, 100); ball.OnBallInPlay(ballEventArgs); }
public Pitcher(Ball ball) { ball.BallInPlay += new EventHandler(ball_BallInPlay); }