本文整理汇总了C#中TvDatabase.TvBusinessLayer.GetLinkagesForChannel方法的典型用法代码示例。如果您正苦于以下问题:C# TvBusinessLayer.GetLinkagesForChannel方法的具体用法?C# TvBusinessLayer.GetLinkagesForChannel怎么用?C# TvBusinessLayer.GetLinkagesForChannel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TvDatabase.TvBusinessLayer
的用法示例。
在下文中一共展示了TvBusinessLayer.GetLinkagesForChannel方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ShowContextMenu
private void ShowContextMenu()
{
if (dlg == null)
{
dlg = (GUIDialogMenu)GUIWindowManager.GetWindow((int)Window.WINDOW_DIALOG_MENU);
}
if (dlg == null)
{
return;
}
dlg.Reset();
dlg.SetHeading(924); // menu
if (!g_Player.IsTVRecording && GUIGraphicsContext.DBLClickAsRightClick)
{
dlg.AddLocalizedString(10104); // TV MiniEPG
}
//dlg.AddLocalizedString(915); // TV Channels
if (!g_Player.IsTVRecording)
{
dlg.AddLocalizedString(4); // TV Guide}
}
TvBusinessLayer layer = new TvBusinessLayer();
IList<ChannelLinkageMap> linkages = null;
if (!g_Player.IsTVRecording)
{
linkages = layer.GetLinkagesForChannel(TVHome.Navigator.Channel);
if (linkages != null)
{
if (linkages.Count > 0)
{
dlg.AddLocalizedString(200042); // Linked Channels
}
}
}
/*if (TVHome.Navigator.Groups.Count > 1)
dlg.AddLocalizedString(971); // Group*/
if (!g_Player.IsTVRecording && TVHome.Card.HasTeletext)
{
dlg.AddLocalizedString(1441); // Fullscreen teletext
}
dlg.AddLocalizedString(941); // Change aspect ratio
// msn related can be removed
//if (PluginManager.IsPluginNameEnabled("MSN Messenger"))
//{
// dlg.AddLocalizedString(12902); // MSN Messenger
// dlg.AddLocalizedString(902); // MSN Online contacts
//}
//IAudioStream[] streams = TVHome.Card.AvailableAudioStreams;
//if (streams != null && streams.Length > 0)
if (g_Player.AudioStreams > 0)
{
dlg.AddLocalizedString(492); // Audio language menu
}
eAudioDualMonoMode dualMonoMode = g_Player.GetAudioDualMonoMode();
if (dualMonoMode != eAudioDualMonoMode.UNSUPPORTED)
{
dlg.AddLocalizedString(200059); // Audio dual mono mode menu
}
// SubTitle stream, show only when there exists any streams,
// dialog shows then the streams and an item to disable them
if (g_Player.SubtitleStreams > 0 || g_Player.SupportsCC)
{
dlg.AddLocalizedString(462);
}
// If the decoder supports postprocessing features (FFDShow)
if (g_Player.HasPostprocessing)
{
dlg.AddLocalizedString(200073);
}
dlg.AddLocalizedString(11000); // Crop settings
if (!g_Player.IsTVRecording)
{
dlg.AddLocalizedString(100748); // Program Information
}
if (!g_Player.IsTVRecording && Utils.FileExistsInCache(GUIGraphicsContext.Skin + @"\mytvtuningdetails.xml"))
{
dlg.AddLocalizedString(200041); // tuning details
}
TvServer server = new TvServer();
if (!g_Player.IsTVRecording)
{
VirtualCard vc;
if (server.IsRecording(TVHome.Navigator.Channel.IdChannel, out vc))
{
dlg.AddLocalizedString(265); //stop rec.
}
else
//.........这里部分代码省略.........