void ReleaseDesignerOutlets() { if (CoachName != null) { CoachName.Dispose(); CoachName = null; } if (MatchesContainer != null) { MatchesContainer.Dispose(); MatchesContainer = null; } if (PlayersContainer != null) { PlayersContainer.Dispose(); PlayersContainer = null; } if (StadiumName != null) { StadiumName.Dispose(); StadiumName = null; } if (TeamImage != null) { TeamImage.Dispose(); TeamImage = null; } if (TeamName != null) { TeamName.Dispose(); TeamName = null; } }
public void Remove(TournamentMatch match) { MatchesContainer.FirstOrDefault(p => p.Match == match)?.Remove(); }