示例#1
0
 public void FireBallClick(BallCtrl ball)
 {
     if (BallClick != null)
     {
         BallClick(this, ball);
     }
 }
示例#2
0
        public void AddNewBall(Ball ball)
        {
            var ballCtrl = FindBall(ball);

            if (ballCtrl == null)
            {
                ballCtrl = new BallCtrl(ball, Preferences)
                {
                    Bounds = GetCellRect(ball.Position)
                };
                _balls.Add(ballCtrl);
            }
            InvalidateCell(ball.Position);
            //ballCtrl.Invalidate();
        }