Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 public Pitcher(Ball ball)
 {
     ball.BallInPlay += new BallEventHandler(ball_BallInPlay);
 }