Exemple #1
0
 public UserInterfaceTest()
 {
     InitializeComponent();
     CavePnl.Hide();
     StatsPnl.Hide();
     TriviaPnl.Hide();
     secretLbl.Hide();
 }
Exemple #2
0
        private void GetSecretBttn_Click(object sender, EventArgs e)
        {
            TriviaPnl.Show();
            CavePnl.Hide();

            bool secret = gameControl.triviaRound(2, 3);

            if (secret)
            {
                secretLbl.Text = "Your secret is: " + gameControl.getSecret();
                secretLbl.Show();
            }
        }
Exemple #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     TriviaPnl.Hide();
     CavePnl.Show();
 }