public ApplicationWindow() { InitializeComponent(); this.myGame = new Game.Game(this); this.canvas = new Canvas(this.myGame); this.canvas.Size = new Size(600, 300); this.canvas.Location = new Point(10, 100); this.Controls.Add(this.canvas); //this.buttonStartGame.Enabled = false; }
public Canvas(Game.Game game) { InitializeComponent(); this.game = game; }