public override void OnClick()
        {
            if (m_Hook == null)
            {
                return;
            }
            //LogFile log = new LogFile(m_Hook.tipRichBox, m_Hook.strLogFilePath);

            //if (log != null)
            //{
            //    log.Writelog("当前范围出图");
            //}
            if (m_Hook.ArcGisMapControl.Map.LayerCount == 0)
            {
                MessageBox.Show("当前没有调阅数据!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            m_Hook.MapControl.CurrentTool = null;
            IEnvelope pCurrentExtent = (m_Hook.MapControl.Map as IActiveView).Extent;

            SysCommon.CProgress pgss = new SysCommon.CProgress("正在加载制图界面,请稍候...");
            pgss.EnableCancel    = false;
            pgss.ShowDescription = false;
            pgss.FakeProgress    = true;
            pgss.TopMost         = true;
            pgss.ShowProgress();
            Application.DoEvents();
            GeoPageLayout.FrmPageLayout fmPageLayout = new GeoPageLayout.FrmPageLayout(m_Hook.MapControl.Map, pCurrentExtent);
            fmPageLayout.WriteLog = this.WriteLog;//2012-9-12 是否写日志
            fmPageLayout.typeZHT  = 2;
            fmPageLayout.Show();
            pgss.Close();
        }
        public override void OnClick()
        {
            if (m_Hook == null)
            {
                return;
            }
            //LogFile log = new LogFile(m_Hook.tipRichBox, m_Hook.strLogFilePath);

            //if (log != null)
            //{
            //    log.Writelog("导入范围出图");
            //}
            if (m_Hook.ArcGisMapControl.Map.LayerCount == 0)
            {
                MessageBox.Show("当前没有调阅数据!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            OpenFileDialog dlg = new OpenFileDialog();

            //dlg.Filter = "个人数据库(*.mdb)|*.mdb|shp数据|*.shp|文本文件|*.txt";
            dlg.Filter = "shp数据|*.shp|个人数据库(*.mdb)|*.mdb|文件数据库(*.gdb)|gdb";
            if (dlg.ShowDialog() == DialogResult.Cancel)
            {
                return;
            }
            IPolygon pGon = new PolygonClass();

            pGon = GetPolyGonFromFile(dlg.FileName);
            if (pGon == null)
            {
                return;
            }
            if (this.WriteLog)
            {
                Plugin.LogTable.Writelog("导入范围制图,范围文件路径为:" + dlg.FileName);
            }
            ESRI.ArcGIS.Carto.IMap pMap = m_Hook.MapControl.ActiveView.FocusMap;
            pGon.SpatialReference = pMap.SpatialReference;//须赋给一致的空间参考
            ITopologicalOperator pTopo = pGon as ITopologicalOperator;

            if (pTopo != null)
            {
                pTopo.Simplify();
            }
            drawgeometryXOR(pGon, m_pScreenDisplay);

            //addGeometryEle(pGon);
            //SysCommon.CProgress pgss = new SysCommon.CProgress("正在加载制图界面,请稍候...");
            //pgss.EnableCancel = false;
            //pgss.ShowDescription = false;
            //pgss.FakeProgress = true;
            //pgss.TopMost = true;
            //pgss.ShowProgress();
            //Application.DoEvents();
            fmPageLayout          = new GeoPageLayout.FrmPageLayout(pMap, pGon as IGeometry);
            fmPageLayout.WriteLog = this.WriteLog;//ygc 2012-9-12 是否写日志
            //pgss.Close();
            fmPageLayout.FormClosed += new FormClosedEventHandler(fmPageLayout_FormClosed);
            fmPageLayout.Show();

            Application.DoEvents();
            //gpl = new GeoPageLayout.GeoPageLayout(pMap, pGon as ESRI.ArcGIS.Geometry.IGeometry);
            //gpl.typePageLayout = 2;
            //gpl.MapOut();
            //gpl = null;

            //m_Hook.MapControl.ActiveView.Refresh();
        }