|
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
-
- namespace MaiMuAOI.SysUI.Web
- {
- public partial class WebFrm : Form
- {
- public WebFrm(string subject, string subUrl, string baseUrl = "http://127.0.0.1:18082/static/index.html#/")
- {
- InitializeComponent();
- this.uiTitel1.FatherForm = this;
- UIStyle.SetUIStyle(this);
-
- this.Text = subject;
- this.webView21.Source = new Uri(baseUrl + subUrl);
- //this.webView21.
- }
-
- private void WebFrm_SizeChanged(object sender, EventArgs e)
- {
- if (this.WindowState == FormWindowState.Maximized)
- {
- this.WindowState = FormWindowState.Normal;
- this.Top = 0;
- this.Left = 0;
- this.Width = SystemInformation.WorkingArea.Width;
- this.Height = SystemInformation.WorkingArea.Height;
- }
- }
- }
- }
|