Esempio n. 1
0
        /// <summary>
        /// 添加游戏记录
        /// </summary>
        /// <param name="user"></param>
        /// <param name="Score"></param>
        /// <returns></returns>
        public bool AddGameLog(UserInfo user, int Score)
        {
            UserGameLog log = new UserGameLog {
                UserID = user.UserID, Score = Score, CreateTime = DateTime.Now
            };
            int cmd = new GameInfoDAL().AddGameLog(log);

            if (cmd == 1)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Esempio n. 2
0
 public static string GameInfoAbbreSel(string sAbbre)
 {
     return(GameInfoDAL.GameInfoAbbreSel(sAbbre));
 }
Esempio n. 3
0
 public static int GameInfoIDSel(string sAbbre)
 {
     return(GameInfoDAL.GameInfoIDSel(sAbbre));
 }
Esempio n. 4
0
 public static List <ObjectThree> GameInfoSelC()
 {
     return(GameInfoDAL.GameInfoSelC());
 }
Esempio n. 5
0
 public static List <GameInfo> GameInfoSel()
 {
     return(GameInfoDAL.GameInfoSel());
 }