Пример #1
0
 private void ClearAllData(IGameRankingDataAccess DAL)
 {
     DAL.ClearAllData();
     DAL.SubmitGameListChanges();
     DAL.SubmitPlayerListChanges();
     DAL.SubmitTeamListChanges();
     DAL.SubmitmatchListChanges();
     DAL.SubmitRankingListChanges();
 }
 public void AddOrUpdateGame(GameType game)
 {
     if (grda.Games.Contains(game))
     {
         grda.Games.Remove(game);
     }
     grda.Games.Add(game);
     grda.SubmitGameListChanges();
 }
Пример #3
0
 /// <summary>
 /// Adds or updates a game
 /// </summary>
 /// <param name="game"> game </param>
 public void AddOrUpdateGame(GameType game)
 {
     if (game == null)
     {
         throw new System.InvalidOperationException("Game is null");
     }
     if (backend.Games.Contains(game))
     {
         backend.Games.Remove(game);
     }
     backend.Games.Add(game);
     backend.SubmitGameListChanges();
 }
Пример #4
0
 private void ClearAllData(IGameRankingDataAccess DAL)
 {
     DAL.ClearAllData();
     DAL.SubmitGameListChanges();
     DAL.SubmitPlayerListChanges();
     DAL.SubmitTeamListChanges();
     DAL.SubmitmatchListChanges();
     DAL.SubmitRankingListChanges();
 }