public CellControl(int id, Game game, ImageBalls ball) { InitializeComponent(); this.id = id; this.game = game; Ball = ball; }
private void StartGame() { game = new Game(name1, name2); game.OnGameFinished = FinishingGame; game.Start(); this.DataContext = game; }