public void FireBallClick(BallCtrl ball) { if (BallClick != null) { BallClick(this, ball); } }
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(); }