private void btn_Eye_Click(object sender, EventArgs e) { axMapControl_Eye.Visible = !axMapControl_Eye.Visible; if (axMapControl_Eye.Visible) { AddLayersToMapEye(); AeUtils.DrawExtent(m_pMapC2.Extent, axMapControl_Eye.Object as IMapControl2); } }
private void axMapControl1_OnExtentUpdated(object sender, IMapControlEvents2_OnExtentUpdatedEvent e) { AeUtils.DrawExtent(m_pMapC2.Extent, axMapControl_Eye.Object as IMapControl2); }