Пример #1
0
        /// <summary>
        /// 加载默认显示
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void fmBY_Load(object sender, EventArgs e)
        {
            this._dso = new DocumentScriptingObject();
            this.wbmap.ObjectForScripting = _dso;

            string s = System.AppDomain.CurrentDomain.BaseDirectory + "map.html";

            //webBrowser1.Url = new Uri(s);
            this.wbmap.Navigate(s);
            wbmap.Navigated += new WebBrowserNavigatedEventHandler(wbmap_Navigated);
        }
Пример #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            this._dso = new DocumentScriptingObject();
            this.wb1.ObjectForScripting = _dso;
            string s = "http://*****:*****@"http://localhost:18166/index.html#debugInWebBrowser";
            //webBrowser1.Url = new Uri(s);
            this.wb1.Navigate(s);
            //wb1.Navigated += new WebBrowserNavigatedEventHandler(wb1_Navigated);
            //wb1.DocumentCompleted += Wb1_DocumentCompleted;
            //this.wb2.ObjectForScripting = _dso;
            //this.wb2.Navigate(s);
            //wb2.Navigated += new WebBrowserNavigatedEventHandler(wb2_Navigated);
        }