private void btnMenuScores_Click(object sender, EventArgs e) { if (MenuUser.Offline == true) { this.Hide(); frmScores frmScores = new frmScores(); frmScores.ScoresUser = MenuUser; frmScores.Show(); } else { try { Choice.Connection(); //Open Scores this.Hide(); frmScores frmScores = new frmScores(); frmScores.ScoresUser = MenuUser; frmScores.Show(); } catch (SqlException) { MessageBox.Show("Can't connect to the Database"); } } }
} //Back button - To Menu public void OpenScores() { this.Hide(); frmScores frmScores = new frmScores(); frmScores.ScoresUser = GameUser; frmScores.Show(); } //Open Scores Form - frmScores