예제 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            int userChoice;

            userChoice = Convert.ToInt32(userChoicetxt.Text);

            if (userChoice == 1)
            {
                Monsterpanel.Visible = true;
                Monsterpanel.BringToFront();
            }
            else if (userChoice == 2)
            {
                endingpanel.Visible = true;
                endingpanel.BringToFront();
            }
        }
예제 #2
0
 private void continueSwordbtn_Click(object sender, EventArgs e)
 {
     Monsterpanel.Visible = true;
     Monsterpanel.BringToFront();
 }