private void axMapControl_Main_OnExtentUpdated(object sender, IMapControlEvents2_OnExtentUpdatedEvent e) { if (axMapControl_HawkEye.Visible) { AeUtils.DrawExtent(e.newEnvelope as IEnvelope, axMapControl_HawkEye); } }
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 = "↙"; } }