本文整理汇总了C#中ITicketHelper.GetLeagueNameById方法的典型用法代码示例。如果您正苦于以下问题:C# ITicketHelper.GetLeagueNameById方法的具体用法?C# ITicketHelper.GetLeagueNameById怎么用?C# ITicketHelper.GetLeagueNameById使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ITicketHelper
的用法示例。
在下文中一共展示了ITicketHelper.GetLeagueNameById方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BuildLeague
protected override void BuildLeague(ITicket ticket, ITicketHelper ticketHelper)
{
if (ticket == null || ticketHelper == null)
{
return;
}
base.BuildLeague(ticket, ticketHelper);
var arenaName = ticketHelper.GetLeagueNameById(ticket.BetCheck);
var fightNo = string.Format(CockFightingLang.FightNo, ticket.MatchId);
Template.League.LeagueName.leagueName = string.Format("{0} {1}", arenaName, fightNo);
}
示例2: BuildLeague
/// <summary>
/// Builds the league.
/// </summary>
/// <param name="ticket">The ticket.</param>
/// <param name="ticketHelper">The ticket helper.</param>
protected virtual void BuildLeague(ITicket ticket, ITicketHelper ticketHelper)
{
if (Template.League == null
|| Template.League.LeagueName == null)
{
return;
}
Template.League.LeagueName.leagueName = ticketHelper.GetLeagueNameById(ticket.LeagueId);
}