BaoKai_202508-Wms-Jingwang..../WMS.FrmTR/FrmMap.cs
2025-08-24 09:35:55 +08:00

39 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using WMS.Frm.Base;
namespace WMS.FrmTR
{
[ComVisible(true)]
public partial class FrmMap : Form
{
private string start;
private string end;
public FrmMap(string start,string end)
{
InitializeComponent();
this.start = start;
this.end = end;
webBrowser.ObjectForScripting = this;
webBrowser.Url = new Uri("http://123.232.119.17:8001/TR/BMap.html");
webBrowser.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(webBrowser_DocumentCompleted);
}
private void webBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
webBrowser.Document.InvokeScript("drivingLine", new Object[] { start, end });
this.Show();
}
}
}