本文整理汇总了C#中TvDatabase.TvBusinessLayer.GetRadioGuideChannelsForGroup方法的典型用法代码示例。如果您正苦于以下问题:C# TvBusinessLayer.GetRadioGuideChannelsForGroup方法的具体用法?C# TvBusinessLayer.GetRadioGuideChannelsForGroup怎么用?C# TvBusinessLayer.GetRadioGuideChannelsForGroup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TvDatabase.TvBusinessLayer
的用法示例。
在下文中一共展示了TvBusinessLayer.GetRadioGuideChannelsForGroup方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetChannels
protected override void GetChannels(bool refresh)
{
if (refresh || _channelList == null)
{
if (_channelList != null)
{
if (_channelList.Count < _channelCount)
{
_previousChannelCount = _channelList.Count;
}
else
{
_previousChannelCount = _channelCount;
}
}
_channelList = new List<GuideChannel>();
}
if (_channelList.Count == 0)
{
try
{
if (Radio.SelectedGroup != null)
{
TvBusinessLayer layer = new TvBusinessLayer();
IList<Channel> channels = layer.GetRadioGuideChannelsForGroup(Radio.SelectedGroup.IdGroup);
foreach (Channel chan in channels)
{
GuideChannel tvGuidChannel = new GuideChannel();
tvGuidChannel.channel = chan;
if (tvGuidChannel.channel.VisibleInGuide && tvGuidChannel.channel.IsRadio)
{
if (_showChannelNumber)
{
if (_byIndex)
{
tvGuidChannel.channelNum = _channelList.Count + 1;
}
else
{
tvGuidChannel.channelNum = tvGuidChannel.channel.ChannelNumber;
}
}
tvGuidChannel.strLogo = GetChannelLogo(tvGuidChannel.channel.DisplayName);
_channelList.Add(tvGuidChannel);
}
}
}
}
catch { }
if (_channelList.Count == 0)
{
GuideChannel tvGuidChannel = new GuideChannel();
tvGuidChannel.channel = new Channel(false, true, 0, DateTime.MinValue, false,
DateTime.MinValue, 0, true, "", GUILocalizeStrings.Get(911), 10000);
for (int i = 0; i < 10; ++i)
{
_channelList.Add(tvGuidChannel);
}
}
}
}