示例#1
0
 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");
         }
     }
 }
示例#2
0
        } //Back button - To Menu

        public void OpenScores()
        {
            this.Hide();
            frmScores frmScores = new frmScores();

            frmScores.ScoresUser = GameUser;
            frmScores.Show();
        } //Open Scores Form - frmScores