本文整理汇总了C#中Browser.Show方法的典型用法代码示例。如果您正苦于以下问题:C# Browser.Show方法的具体用法?C# Browser.Show怎么用?C# Browser.Show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Browser
的用法示例。
在下文中一共展示了Browser.Show方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ShowOverview
/// <summary>
/// Shows strategy overview.
/// </summary>
private void ShowOverview(object sender, EventArgs e)
{
if (GeneratedDescription != string.Empty)
Data.Strategy.Description = GeneratedDescription;
var so = new Browser(Language.T("Strategy Overview"), Data.Strategy.GenerateHtmlOverview());
so.Show();
}
示例2: RSSView_LinkClicked
void RSSView_LinkClicked(object sender, System.Windows.Forms.Samples.LinkClickedEventArgs e)
{
Browser browser = new Browser();
browser.URL = e.URL;
browser.Show();
}
示例3: Show_Overview
/// <summary>
/// Shows strategy overview.
/// </summary>
protected virtual void Show_Overview(object sender, EventArgs e)
{
if (generatedDescription != string.Empty)
Data.Strategy.Description = generatedDescription;
Browser so = new Browser(Language.T("Strategy Overview"), Data.Strategy.GenerateHTMLOverview());
so.Show();
return;
}
示例4: Main
public static int Main(String[] args)
{
KAboutData aboutdata = new KAboutData( "p9",
"Tutorial - p9", KDE.Ki18n(""),
"1.0",
KDE.Ki18n("Step 9 of a simple tutorial"),
KAboutData.LicenseKey.License_GPL,
KDE.Ki18n("(C) 2000, 2001 Antonio Larrosa Jimenez"),
KDE.Ki18n(""),
"http://devel-home.kde.org/~larrosa/tutorial.html" );
aboutdata.AddAuthor( KDE.Ki18n("Antonio Larrosa Jimenez"),
KDE.Ki18n("Original Developer/Maintainer"),
"[email protected]",
"http://devel-home.kde.org/~larrosa/index.html" );
aboutdata.AddAuthor( KDE.Ki18n("Richard Dale"),
KDE.Ki18n("C# port"),
"[email protected]",
"" );
KCmdLineArgs.Init(args, aboutdata);
KUniqueApplication a = new KUniqueApplication();
if (!QDBusConnection.SessionBus().IsConnected()) {
Console.Error.WriteLine("Cannot connect to the D-BUS session bus.\n" +
"To start it, run:\n" +
"\teval `dbus-launch --auto-syntax`\n");
return 1;
}
if (!QDBusConnection.SessionBus().RegisterService("org.kde.Browser")) {
Console.Error.WriteLine("{0}", QDBusConnection.SessionBus().LastError().Message());
return 1;
}
Browser window = new Browser("Tutorial - p9");
window.Resize(300, 200);
window.Show();
QDBusConnection.SessionBus().RegisterObject("/", window, (uint) QDBusConnection.RegisterOption.ExportAllSlots);
return KApplication.Exec();
}
示例5: OpenBrowser
private static void OpenBrowser(string s)
{
Browser b = new Browser(s);
b.StartPosition = FormStartPosition.CenterScreen;
b.Show();
}