版博士V2.0程序
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

39 строки
1.1 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. namespace MaiMuAOI.SysUI.Web
  11. {
  12. public partial class WebFrm : Form
  13. {
  14. public WebFrm(string subject, string subUrl, string baseUrl = "http://127.0.0.1:18082/static/index.html#/")
  15. {
  16. InitializeComponent();
  17. this.uiTitel1.FatherForm = this;
  18. UIStyle.SetUIStyle(this);
  19. this.Text = subject;
  20. this.webView21.Source = new Uri(baseUrl + subUrl);
  21. //this.webView21.
  22. }
  23. private void WebFrm_SizeChanged(object sender, EventArgs e)
  24. {
  25. if (this.WindowState == FormWindowState.Maximized)
  26. {
  27. this.WindowState = FormWindowState.Normal;
  28. this.Top = 0;
  29. this.Left = 0;
  30. this.Width = SystemInformation.WorkingArea.Width;
  31. this.Height = SystemInformation.WorkingArea.Height;
  32. }
  33. }
  34. }
  35. }