예제 #1
0
파일: Menu.cs 프로젝트: hungryglobe8/Games
        private void StartGame(object sender, EventArgs e)
        {
            Button button   = (Button)sender;
            var    gameSize = button.Text;

            Form game = new GameWindow(gameSize);

            Hide();
            game.Show();
        }
예제 #2
0
        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();
        }