Exemple #1
0
        public override void OnMouseUp(int Button, int Shift, int X, int Y)
        {
            int    iPiexl        = 3;
            double iMapTolerance = ConvertPixelsToMapUnits(m_MapControl.ActiveView, iPiexl);

            IGeometry pGeometry = null;

            ITopologicalOperator pTopo = (ITopologicalOperator)m_pPoint;

            if (pTopo != null)
            {
                pGeometry = pTopo.Buffer(iMapTolerance);
            }


            if (m_frmQuery == null)
            {
                m_frmQuery             = new frmQueryForest(m_MapControl);
                m_frmQuery.Owner       = m_mainFrm;
                m_frmQuery.FormClosed += new FormClosedEventHandler(frmQuery_FormClosed);
            }
            //ygc 2012-8-28 将查询结果数据在主窗体下方显示
            // _QuerBar.m_pMapControl = m_MapControl;
            // _QuerBar.EmergeQueryData(m_MapControl.ActiveView.FocusMap, pGeometry, esriSpatialRelEnum.esriSpatialRelIntersects);
            m_frmQuery.Show();
            ///ZQ 20111119  modify
            m_frmQuery.FillData(m_MapControl.ActiveView.FocusMap, pGeometry, esriSpatialRelEnum.esriSpatialRelIntersects);
        }
Exemple #2
0
 /// <summary>
 /// Occurs when this tool is clicked
 /// </summary>
 public override void OnClick()
 {
     if (m_frmQuery == null)
     {
         m_frmQuery             = new frmQueryForest(m_MapControl);
         m_frmQuery.Owner       = m_mainFrm;
         m_frmQuery.FormClosed += new FormClosedEventHandler(frmQuery_FormClosed);
     }
 }
Exemple #3
0
 private void frmQuery_FormClosed(object sender, FormClosedEventArgs e)
 {
     m_frmQuery = null;
 }