|
|
|
@ -21,10 +21,8 @@ namespace AksWebBrowser
|
|
|
|
|
{ |
|
|
|
|
public class FrmMain : Window |
|
|
|
|
{ |
|
|
|
|
public int w = 1080; |
|
|
|
|
public int h = 1920; |
|
|
|
|
//public int h = 1080; |
|
|
|
|
//public int w = 1920; |
|
|
|
|
public int h = 1080; |
|
|
|
|
public int w = 1920; |
|
|
|
|
|
|
|
|
|
protected override void InitializeComponent() |
|
|
|
|
{ |
|
|
|
@ -69,8 +67,16 @@ namespace AksWebBrowser
|
|
|
|
|
{ |
|
|
|
|
LoadStyleFile("res://AksWebBrowser/StyleSheet.css"); |
|
|
|
|
//窗体大小 |
|
|
|
|
this.Width = w; |
|
|
|
|
this.Height = h; |
|
|
|
|
if (Parame.sfhp) |
|
|
|
|
{ |
|
|
|
|
this.Height = h; |
|
|
|
|
this.Width = w; |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
this.Height = w; |
|
|
|
|
this.Width = h; |
|
|
|
|
} |
|
|
|
|
//SetTaskStatus.Hidetask(); |
|
|
|
|
base.OnInitialized(); |
|
|
|
|
//初始化网络连接(硬件服务响应) |
|
|
|
@ -79,8 +85,16 @@ namespace AksWebBrowser
|
|
|
|
|
textBox = FindPresenterByName<TextBox>(nameof(textBox)); |
|
|
|
|
Parame.webBrowser.CusRequest.CusResquestEvent += CusRequest_CusResquestEvent; |
|
|
|
|
//浏览器大小 |
|
|
|
|
Parame.webBrowser.Width = w; |
|
|
|
|
Parame.webBrowser.Height = h; |
|
|
|
|
if (Parame.sfhp) |
|
|
|
|
{ |
|
|
|
|
Parame.webBrowser.Width = w; |
|
|
|
|
Parame.webBrowser.Height = h; |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
Parame.webBrowser.Width = h; |
|
|
|
|
Parame.webBrowser.Height = w; |
|
|
|
|
} |
|
|
|
|
//Parame.webBrowser.Url = "http://143.169.62.3:8096/#/main-out";//天府新区 |
|
|
|
|
Parame.webBrowser.Url = "http://127.0.0.1:8096/#/main-out"; |
|
|
|
|
//Parame.webBrowser.Url = "http://192.168.0.34:8078/#/main-out"; |
|
|
|
|