本文整理汇总了C#中System.Stream.GetStreamEmbedData方法的典型用法代码示例。如果您正苦于以下问题:C# Stream.GetStreamEmbedData方法的具体用法?C# Stream.GetStreamEmbedData怎么用?C# Stream.GetStreamEmbedData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Stream
的用法示例。
在下文中一共展示了Stream.GetStreamEmbedData方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: NavigateToStream
internal void NavigateToStream(Stream streamObject, StreamDeskDatabase db)
{
if (streamObject.StreamEmbed == "url_browser") {
webBrowser1.ScrollBarsEnabled = true;
toolStrip1.Visible = true;
} else {
webBrowser1.ScrollBarsEnabled = false;
toolStrip1.Visible = false;
}
viewToolStripMenuItem.Visible = true;
ActiveStreamObject = streamObject;
ActiveDatabase = db;
if (streamObject.ChatEmbed != "none" || streamObject.ChatEmbed != null)
chatToolStripMenuItem.Visible = true;
else
chatToolStripMenuItem.Visible = false;
Text = streamObject.Name + " > " + streamObject.ProviderObject.Name;
if (streamObject.StreamEmbed == "url_browser" || streamObject.StreamEmbed == "url_custom")
webBrowser1.Navigate(streamObject.GetStreamEmbedData("URL"));
else {
ClientSize = new Size(streamObject.Size.Width, streamObject.Size.Height);
webBrowser1.DocumentText = db.GetStream(streamObject);
}
}