public UserInterfaceTest() { InitializeComponent(); CavePnl.Hide(); StatsPnl.Hide(); TriviaPnl.Hide(); secretLbl.Hide(); }
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(); } }
private void button1_Click(object sender, EventArgs e) { TriviaPnl.Hide(); CavePnl.Show(); }