本文整理汇总了C#中Browser.ShowWindow方法的典型用法代码示例。如果您正苦于以下问题:C# Browser.ShowWindow方法的具体用法?C# Browser.ShowWindow怎么用?C# Browser.ShowWindow使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Browser
的用法示例。
在下文中一共展示了Browser.ShowWindow方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ConsoleApp
public ConsoleApp()
{
Settings.CloseExistingBrowserInstances = false;
browser = new IE(server);
browser.ShowWindow(NativeMethods.WindowShowStyle.Show);
playerTribe = GetTribe();
playerFarmUnits = SetPlayerFarmUnits(playerTribe);
}
示例2: SetUp
public void SetUp()
{
para = new PublicPara();
Settings.WaitForCompleteTimeOut = 80;
Settings.WaitUntilExistsTimeOut = 80;
FF = new FireFox();
FF.ShowWindow(WatiN.Core.Native.Windows.NativeMethods.WindowShowStyle.Maximize);
}
示例3: SetUp
public void SetUp()
{
Settings.WaitForCompleteTimeOut = 60;
Settings.WaitUntilExistsTimeOut = 60;
targetHost = System.Configuration.ConfigurationSettings.AppSettings["TargetHost"];
string platform = System.Configuration.ConfigurationSettings.AppSettings["Platform"];
switch (platform)
{
case "IE":
browser = new IE();
browser.ShowWindow(WatiN.Core.Native.Windows.NativeMethods.WindowShowStyle.Maximize);
break;
case "FF":
browser = new FireFox();
browser.ShowWindow(WatiN.Core.Native.Windows.NativeMethods.WindowShowStyle.Maximize);
break;
//default:
// break;
}
browser.GoTo(targetHost);
}
示例4: BringToFront
public static void BringToFront(Browser browser)
{
browser.ShowWindow(NativeMethods.WindowShowStyle.Minimize);
browser.ShowWindow(NativeMethods.WindowShowStyle.Maximize);
}