private void StartGame(object sender, EventArgs e) { Button button = (Button)sender; var gameSize = button.Text; Form game = new GameWindow(gameSize); Hide(); game.Show(); }
private void StartGame(object sender, EventArgs e) { Button button = (Button)sender; var gameSize = button.Text; var imageProvider = new CachedImageProvider(); Form game = new GameWindow(gameSize, imageProvider); Hide(); game.Show(); }