Ejemplo n.º 1
0
        public override Boolean Initialize(System.Data.SqlClient.SqlConnection con)
        {
            Common.g_Plugin      = this;
            Common.g_DataBaseCon = con;

            string    strDiscCode = "VO";
            string    strLangCode = "ENG";
            DataTable tbl         = Common.dbPlugInSetting();

            if (tbl == null)
            {
                MessageBox.Show("Get PlugIn default setting failed, we will use VO,ENG");
            }
            else
            {
                strDiscCode = tbl.Rows[0]["F_DiscCode"].ToString();
                strLangCode = tbl.Rows[0]["F_LanguageCode"].ToString();
            }

            Common.g_strLanguage = strLangCode;


            //初始化比赛计分模块
            Common.g_Game = new GameGeneralBall();
            Common.g_Game.SetRuleModel(Common.g_isVB ? EGbGameType.emGameVolleyBall : EGbGameType.emGameBeachVolleyBall);

            return(true);
        }