コード例 #1
0
        /// <summary>
        /// basic constructor
        /// </summary>
        /// <param name="_GeWebBrowser"></param>
        public DrawMap(WebBrowser GeWebBrowser)
        {
            if (CheckInternetConnect.IsConnectedToInternet() == true)
            {
                this.external = new External();
                this.GE       = new GoogleEarth();

                //--connect event handler--//
                this.external.PluginReady += this.GE.external_PluginReady;
                //this.external.KmlMouseClickEvent += this.GE.external_MouseClick;

                GeWebBrowser.ObjectForScripting = this.external;

                //--insert your localhost.html address below mathod--//
                GeWebBrowser.Navigate(
                    "C:\\Projectdata\\Google\\PlugIn.htm");

                this.data = new List <gpsData>();
                this.data.Clear();
                this.IsInitialize = false;
                this.readCnt      = 0;

                //--debug for whether selected or not selected--//
                GE.StartGoogleEarth = true;

                this.debugMsg = "Start Google Earth";
            }
            else
            {
                this.debugMsg = "Network is not connected";
            }
        }
コード例 #2
0
ファイル: DrawMap.cs プロジェクト: chobabo/IidaLabVy446
        /// <summary>
        /// basic constructor
        /// </summary>
        /// <param name="_GeWebBrowser"></param>
        public DrawMap(WebBrowser GeWebBrowser)
        {
            if (CheckInternetConnect.IsConnectedToInternet() == true)
            {
                this.external = new External();
                this.GE = new GoogleEarth();

                //--connect event handler--//
                this.external.PluginReady += this.GE.external_PluginReady;
                //this.external.KmlMouseClickEvent += this.GE.external_MouseClick;

                GeWebBrowser.ObjectForScripting = this.external;

                //--insert your localhost.html address below mathod--//
                GeWebBrowser.Navigate(
                    "C:\\Projectdata\\Google\\PlugIn.htm");

                this.data = new List<gpsData>();
                this.data.Clear();
                this.IsInitialize = false;
                this.readCnt = 0;

                //--debug for whether selected or not selected--//
                GE.StartGoogleEarth = true;

                this.debugMsg = "Start Google Earth";
            }
            else
            {
                this.debugMsg = "Network is not connected";
            }
        }