Ejemplo n.º 1
0
 public void PublishChanges()
 {
     SelectedMatch.isLive = true;
     foreach (EditScoreItem GO in Team1Players)
     {
         GO.UpdateScore();
     }
     foreach (EditScoreItem GO in Team2Players)
     {
         GO.UpdateScore();
     }
     DatabaseEntry.instance.CricketList.Where(a => a.TournamentName == SelectedMatch.TournamentName).First().Tournaments.Where(a => a.MatchName == SelectedMatch.MatchName).First().Team1Players = Team1Players.Select(a => a._PlayerData).ToList();
     DatabaseEntry.instance.CricketList.Where(a => a.TournamentName == SelectedMatch.TournamentName).First().Tournaments.Where(a => a.MatchName == SelectedMatch.MatchName).First().Team2Players = Team2Players.Select(a => a._PlayerData).ToList();
     DatabaseEntry.instance.UpdateMatchDetails(SelectedMatch.TournamentName, SelectedMatch.MatchName, Team1Players.Select(a => a._PlayerData).ToList(), Team2Players.Select(a => a._PlayerData).ToList());
 }