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;
            }
        }
Ejemplo n.º 2
0
 public void Remove(TournamentMatch match)
 {
     MatchesContainer.FirstOrDefault(p => p.Match == match)?.Remove();
 }