Пример #1
0
        public DataTable getActiveGames()
        {
            DAO.CommonDAO.gameDAO gdao = new DAO.CommonDAO.gameDAO();
            DataTable             dt   = gdao.getActiveGames();

            return(dt);
        }
Пример #2
0
        public string getGameLink(int gameID)
        {
            DAO.CommonDAO.gameDAO gdao = new DAO.CommonDAO.gameDAO();
            DataTable             dt   = gdao.getActiveGames();

            if (dt.Rows.Count > 0)
            {
                DataRow[] dr = dt.Select("gameid=" + gameID);
                if (dr.Length == 1)
                {
                    return(dr[0]["gameLinkAddress"].ToString());
                }
            }
            return("");
        }