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(); }
/// <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(); }
private void ClearAllData(IGameRankingDataAccess DAL) { DAL.ClearAllData(); DAL.SubmitGameListChanges(); DAL.SubmitPlayerListChanges(); DAL.SubmitTeamListChanges(); DAL.SubmitmatchListChanges(); DAL.SubmitRankingListChanges(); }