예제 #1
0
파일: User.cs 프로젝트: shoferb/OYAOB
 public bool AddRoomToActiveGameList(IGame game)
 {
     lock (padlock)
     {
         bool toReturn = false;
         try
         {
             if (game != null)
             {
                 bool alreadyIn = HasThisActiveGame(game);
                 if (!alreadyIn)
                 {
                     ActiveGameList().Add(game);
                     userDataProxy.AddGameToUserActiveGames(this.Id(), game.Id, game.GameNumber);
                     return(true);
                 }
             }
             return(false);
         }
         catch
         {
             return(false);
         }
     }
 }