本文整理匯總了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);
}