コード例 #1
0
        /// <summary>
        /// Occurs when this command is clicked
        /// </summary>
        public override void OnClick()
        {
            // TODO: Add CmdRasterMirror.OnClick implementation
            IMapControl2 pMapCtr = (((IToolbarControl)m_hookHelper.Hook).Buddy) as IMapControl2;

            if (pMapCtr != null)
            {
                IGeoReference pGR = pRasterLayer as IGeoReference;
                pGR.Mirror();
                pMapCtr.ActiveView.PartialRefresh(esriViewDrawPhase.esriViewAll, null, null);
            }
        }