예제 #1
0
        private void btnLevel_Click(object sender, EventArgs e)
        {
            Button selectedButton = sender as Button;
            int    index          = int.Parse(selectedButton.Name.Split('_')[1]);

            CoTheGameLevel coTheGame = null;

            foreach (var game in gameLevels)
            {
                if (game.Id == index)
                {
                    coTheGame = game;
                    break;
                }
            }
            if (coTheGame != null)
            {
                PlayWithComViewForm form = new PlayWithComViewForm(coTheGame);
                form.Show();
            }
        }
예제 #2
0
        private void btnPlayWithCom_Click(object sender, EventArgs e)
        {
            PlayWithComViewForm form = new PlayWithComViewForm();

            form.Show();
        }