예제 #1
0
        //地图控件鼠标右键双击事件
        private void axMapControl_eventRButtonDbClick(object sender, _DHOSOFTMapControlEvents_eventRButtonDbClickEvent e)
        {
            if (Utils.bPublishEvent == false)
            {
                return;
            }
            MapLngLat        lnglat = new MapLngLat(e.dLong, e.dLat);
            MFMouseEventArgs args   = new MFMouseEventArgs(lnglat, MouseButtons.Right, e.x, e.y);

            if (MouseDbClickEvent != null)
            {
                MouseDbClickEvent.Invoke(this, args);
            }
        }
예제 #2
0
        // 地图控件鼠标双击事件
        private void mapControl_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (MapFrame.GMap.Common.Utils.bPublishEvent == false)
            {
                return;
            }

            var p = FromLocalToLngLat(e.X, e.Y);
            MFMouseEventArgs args = new MFMouseEventArgs(p, e.Button, e.X, e.Y);

            if (MouseDbClickEvent != null)
            {
                MouseDbClickEvent.Invoke(this, args);
            }
        }