예제 #1
0
        private void Ctrl_Map_OnAfterDraw(object sender, IMapControlEvents2_OnAfterDrawEvent e)
        {
            IObjectCopy cpyOper = new ObjectCopyClass();
            object      cpyTo   = Ctrl_PageLayout.ActiveView.FocusMap;

            cpyOper.Overwrite(Ctrl_Map.Map, ref cpyTo);
            Ctrl_PageLayout.Refresh();
        }
예제 #2
0
        private void Ctrl_Map_OnExtentUpdated(object sender, IMapControlEvents2_OnExtentUpdatedEvent e)
        {
            IObjectCopy cpyOper = new ObjectCopyClass();
            object      cpyTo   = Ctrl_PageLayout.ActiveView.FocusMap;

            cpyOper.Overwrite(Ctrl_Map.Map, ref cpyTo);
            Lb_MapScale.Text = "1:" + ((UInt32)Ctrl_Map.MapScale).ToString();
            Ctrl_PageLayout.Refresh();
        }