Пример #1
0
        private void BtnGo_Click(object sender, EventArgs e)
        {
            if (txtGameName.Text == "")
            {
                MessageBox.Show("Game Name should not be empty.");
                return;
            }

            if (!DataBaseControl.MatchingOneColumn_OfTable("Game", "GameName", txtGameName.Text))
            {
                MessageBox.Show("This Game is not exist.");
                return;
            }

            string gameDetail;

            if (PlayerDataBaseControl.isEnglish)
            {
                gameDetail = DataBaseControl.GetData_OfGameTable("GameName", txtGameName.Text, "GameDescription");
            }
            else
            {
                gameDetail = DataBaseControl.GetData_OfGameTable("GameName", txtGameName.Text, "GameChineseDescription");
            }



            MessageBox.Show(gameDetail, "Game Detail Of " + txtGameName.Text);
        }