static void Main(string[] args) { Ball ball = new Ball(); Pitcher pitcher=new Pitcher(ball); BallEventArgs bea = new BallEventArgs(5, 7); ball.onBallInPlay(bea); string z = Console.ReadLine(); }
public Pitcher(Ball ball) { ball.BallInPlay += new BallEventHandler(ball_BallInPlay); }