private void btn_Eye_Click(object sender, EventArgs e) { bool isShowing = (axMapControl_Eye.Visible = !axMapControl_Eye.Visible); if (isShowing) { btn_Eye.Text = "↗"; AddLayersToEye(); AeUtils.DrawExtent(m_pMapC2.Extent, axMapControl_Eye.Object as IMapControl2); } else { btn_Eye.Text = "↙"; } }
private void axMapControl_Main_OnExtentUpdated(object sender, IMapControlEvents2_OnExtentUpdatedEvent e) { AeUtils.DrawExtent(e.newEnvelope as IEnvelope, axMapControl_Eye.Object as IMapControl2); }