Пример #1
0
    private string LoadLatestScheduleTeams1(int gameID, int eventID)
    {
        string strReturn = "";

        List <EventGameTeam> eventGameTeamList = new List <EventGameTeam>();

        using (PortalDataContext pdc = new PortalDataContext())
        {
            eventGameTeamList = (from egt in pdc.EventGameTeams
                                 where egt.GameID == gameID
                                 orderby egt.Rank.Value
                                 select egt).ToList();
        }

        foreach (EventGameTeam egt in eventGameTeamList)
        {
            strReturn += (strReturn == "" ? "" : "<br/>Vs.<br/>") + DALPortal.GetTeamName(egt.TeamID);
        }
        return(strReturn);
    }
Пример #2
0
    private string LoadLatestScheduleTeams(int gameID, int eventID)
    {
        string strReturn = "";

        List <EventGameTeam> eventGameTeamList = new List <EventGameTeam>();

        using (PortalDataContext pdc = new PortalDataContext())
        {
            eventGameTeamList = (from egt in pdc.EventGameTeams
                                 where egt.GameID == gameID
                                 orderby egt.Rank.Value
                                 select egt).ToList();
        }

        foreach (EventGameTeam egt in eventGameTeamList)
        {
            strReturn += (strReturn == "" ? "" : "<tr><td  style='color:Red;border-color: #FFFFFF;'>&nbsp;<b>Versus&nbsp;</b></td></tr>") +
                         "<tr><td style='border-color: #FFFFFF;font-size:15px; line-height:15px'><b><a href='../Synergy/TeamDetails.aspx?teamid=" + egt.TeamID + "'>" + DALPortal.GetTeamName(egt.TeamID) + "</a></b></td></tr>";
        }
        return("<tr><td style='border-color: #FFFFFF;'><table align='center' style='border-color: #FFFFFF;'>" + strReturn + "</table></td></tr>");
    }