Exemplo n.º 1
0
 public void InvokeLandmarkAdd(LandmarkEventArgs args)
 {
     if (AirportMarkerDetails.airportOpen)
     {
         OnLandmarkAdd.Invoke(args);
     }
 }
Exemplo n.º 2
0
        void mainMap_MouseClick(object sender, MouseEventArgs e)
        {
            PointLatLng pnew = mainMap.FromLocalToLatLng(e.X, e.Y);

            if (e.Button == MouseButtons.Left)
            {
                var point = mainMap.FromLocalToLatLng(e.X, e.Y);

                currentMarker.Position            = pnew;
                AirportMarkerDetails.LattitudeLng = PositionConverter.ParsePointToString(point, "Signed Degree");
                AirportMarkerDetails.Lattitude    = point.Lat;
                AirportMarkerDetails.Lngtitude    = point.Lng;
                LandmarkEventArgs args = new LandmarkEventArgs
                {
                    latLng = AirportMarkerDetails.LattitudeLng.ToString()
                };
                MarkerHandler handler = MarkerHandler.Instance;
                handler.InvokeLandmarkAdd(args);
                _GetPoint?.Invoke(this, point);
            }

            if (action != null)
            {
                string ca = action;
                action = null;
                if (ca == "fixedPointAdd")
                {
                    labelCurrentAction.Text = "Action: Free";
                    callFixedPoint();
                }
            }
        }