コード例 #1
0
 public void OnMouseUp(int button, int shift, int x, int y)
 {
     try
     {
         m_EndPoint = m_activeView.ScreenDisplay.DisplayTransformation.ToMapPoint(x, y);
         if (m_moveGeoFeedBack == null)
         {
             return;
         }
         m_moveGeoFeedBack.MoveTo(m_EndPoint);
         MoveFeatures(m_EndPoint, m_startPt);
         m_moveGeoFeedBack.ClearGeometry();
         m_moveGeoFeedBack = null;
     }
     catch (Exception ex)
     {
         throw;
     }
 }
コード例 #2
0
 public void OnMouseUp(int button, int shift, int x, int y)
 {
     try
     {
         m_EndPoint = m_activeView.ScreenDisplay.DisplayTransformation.ToMapPoint(x, y);
         if (m_moveGeoFeedBack == null)
         {
             return;
         }
         m_moveGeoFeedBack.MoveTo(m_EndPoint);
         MoveFeatures(m_EndPoint, m_startPt);
         m_moveGeoFeedBack.ClearGeometry();
         m_moveGeoFeedBack = null;
     }
     catch (Exception ex)
     {
         //SysLogHelper.WriteOperationLog("移动要素错误", ex.Source, "数据编辑");
     }
 }