lu
2 天以前 40036d84a94b47b82b2d6316fb63df5e2847c6df
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
36
37
38
39
40
41
42
43
44
using CefSharp.WinForms;
using DevExpress.XtraEditors;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
 
namespace Gs.DevApp.DevFrm.IPQC
{
    public partial class Frm_ShouJianDetect01H5 : DevExpress.XtraEditors.XtraForm
    {
        private string guid = "";
        private string WebApiUrl = "http://192.168.1.145:86/AutoUpdater/h5/shoujian.html";
        private ChromiumWebBrowser chromeBrowser;
        public Frm_ShouJianDetect01H5(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;
        }
    }
}