Beispiel #1
0
        private void playBallButton_Click(object sender, EventArgs e)
        {
            BallEventArgs ballEventArgs = new BallEventArgs(
                (int)trajectory.Value, (int)distance.Value);

            ball.OnBallInPlay(ballEventArgs);
        }
Beispiel #2
0
        private void Button1_Click(object sender, EventArgs e)
        {
            Random rand = new Random();

            ball.OnBallInPlay(new BallEventArgs(rand.Next(0, 30), rand.Next(50, 90)));
        }
Beispiel #3
0
        public void PlayBall()
        {
            BallEventArgs ballEventArgs = new BallEventArgs(Trajectory, Distance);

            ball.OnBallInPlay(ballEventArgs);
        }