Beispiel #1
0
 private void showActualizedPosition()
 {
     if (this.InvokeRequired)
     {
         actualizePositionDelegate geoDelegate = new actualizePositionDelegate(actualizePosition);
         this.Invoke(geoDelegate);
     }
     else
     {
         this.actualizePosition();
     }
     this.setPoint(this._actualLonPos, this._actualLatPos, false);
     if (this._actualLatPos >= 0 && this._actualLonPos >= 0)
     {
         MessageBox.Show("You are on the map");
     }
 }
 private void showActualizedPosition()
 {
     if (this.InvokeRequired)
     {
         actualizePositionDelegate geoDelegate = new actualizePositionDelegate(actualizePosition);
         this.Invoke(geoDelegate);
     }
     else
     {
         this.actualizePosition();
     }
     this.setPoint(this._actualLonPos, this._actualLatPos, false);
     if (this._actualLatPos >= 0 && this._actualLonPos >= 0)
         MessageBox.Show("You are on the map");
 }