private void AnalysedMatchGeneralControls() { currentAnalysedMatch = new AnalysedMatch(day, month, year); AnalysedMatchTimeControls(); LeagueNameControls(); MatchCodeTeamNameControls(); }
private void RestoreGrdPickedMatches() { grdPickedMatches.Rows.Clear(); foreach (var pickedMatchId in pickedMatchIds) { int index = grdPickedMatches.Rows.Add(); AnalysedMatch analysedMatch = analysedMatches.First(x => x.AnalysedMatchId == pickedMatchId); grdPickedMatches.Rows[index].Cells[0].Value = analysedMatch.MatchCode; grdPickedMatches.Rows[index].Cells[1].Value = analysedMatch.HomeTeamName + " - " + analysedMatch.AwayTeamName; grdPickedMatches.Rows[index].Cells[2].Value = pickedMatchId; } }
//----- private void SetCurrentAnalysedMatch(int analysedMatchId) { currentAnalysedMatch = analysedMatches.First(x => x.AnalysedMatchId == analysedMatchId); }