public static bool RowHasTeamButNoPlayer(PlayerMatch gridRow)
 {
     return string.IsNullOrEmpty(gridRow.PlayerName) && !string.IsNullOrEmpty(gridRow.TeamName);
 }
        public static ObservableCollection<PlayerMatch> GetPlayerMatches(FootballDataSet footballDataSet, int matchId)
        {
            ObservableCollection<PlayerMatch> _playerMatches = new ObservableCollection<PlayerMatch>();

            foreach (DataRowView row in footballDataSet.PlayerMatch.DefaultView)
            {
                PlayerMatch tempPlayerMatch = new PlayerMatch();
                tempPlayerMatch.PlayerID = int.Parse(row["PlayerID"].ToString());
                tempPlayerMatch.PlayerName = GetPlayerNameFromID(footballDataSet.Player, tempPlayerMatch.PlayerID);
                tempPlayerMatch.TeamID = int.Parse(row["TeamID"].ToString());
                tempPlayerMatch.TeamName = GetTeamNameFromID(footballDataSet.Team, tempPlayerMatch.TeamID);
                tempPlayerMatch.MatchID = int.Parse(row["MatchID"].ToString());

                if (matchId == tempPlayerMatch.MatchID || matchId == -1)
                    _playerMatches.Add(tempPlayerMatch);
            }

            return _playerMatches;
        }
        public static bool PlayerMatchCompletedByUser(PlayerMatch playerMatch)
        {
            if (!string.IsNullOrEmpty(playerMatch.PlayerName) && !string.IsNullOrEmpty(playerMatch.TeamName))
                return true;

            return false;
        }