/// <summary> /// Adds or updates a SoloMatch /// </summary> /// <param name="match"> SoloMatch </param> public void AddOrUpdateSoloMatch(SoloMatch match) { if (backend.MatchList.Contains(match)) { backend.MatchList.Remove(match); } backend.MatchList.Add(match); backend.SubmitmatchListChanges(); UpdateScores(); UpdateRankings(); }
private void ClearAllData(IGameRankingDataAccess DAL) { DAL.ClearAllData(); DAL.SubmitGameListChanges(); DAL.SubmitPlayerListChanges(); DAL.SubmitTeamListChanges(); DAL.SubmitmatchListChanges(); DAL.SubmitRankingListChanges(); }
public void AddOrUpdateSoloMatch(SoloMatch match) { grda.MatchList.Add(match); grda.SubmitmatchListChanges(); }