cdk
2025-10-30 5d0080eecc63a8ea1feac3f4f248549eb68d2c5e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using CefSharp.WinForms;
using System;
using System.Windows.Forms;
 
namespace Gs.DevApp.DevFrm.WOM
{
    public partial class KanBanLaTouH5 : DevExpress.XtraEditors.XtraForm
    {
        private string guid = "";
        private string WebApiUrl = "http://192.168.1.145:86/AutoUpdater/h5/kanBanLaTou.html";
        private ChromiumWebBrowser chromeBrowser;
        public KanBanLaTouH5(string _guid)
        {
            this.guid = _guid;
            this.WebApiUrl = (WebApiUrl + "?guid=" + guid);
            InitializeComponent();
            this.Load += ShowFile_Load;
            this.FormClosed += ShowFile_FormClosed;
        }
 
        private void ShowFile_FormClosed(object sender, FormClosedEventArgs e)
        {
            chromeBrowser.Dispose();
        }
 
        private void ShowFile_Load(object sender, EventArgs e)
        {
            chromeBrowser = new ChromiumWebBrowser(WebApiUrl);
            this.pane1.Controls.Add(chromeBrowser);
            chromeBrowser.Dock = DockStyle.Fill;
            txtUrl.Text = WebApiUrl;
            txtUrl.ReadOnly = true;
        }
    }
}