Ejemplo n.º 1
0
 private void axMapControl_Main_OnExtentUpdated(object sender, IMapControlEvents2_OnExtentUpdatedEvent e)
 {
     if (axMapControl_HawkEye.Visible)
     {
         AeUtils.DrawExtent(e.newEnvelope as IEnvelope, axMapControl_HawkEye);
     }
 }
Ejemplo n.º 2
0
        private void btn_HawkEye_Click(object sender, EventArgs e)
        {
            bool isShowing = (axMapControl_HawkEye.Visible = !axMapControl_HawkEye.Visible);

            if (isShowing)
            {
                btn_HawkEye.Text = "↗";
                AeUtils.AddLayersToHawkEye(axMapControl_HawkEye);
                AeUtils.DrawExtent(m_pMapC2.Extent, axMapControl_HawkEye);
            }
            else
            {
                btn_HawkEye.Text = "↙";
            }
        }