示例#1
0
 public override void Refresh()
 {
     base.Refresh();
     if (ActiveView != null)
     {
         ActiveView.Refresh();
     }
     Repaint();
 }
示例#2
0
 public override void Refresh()
 {
     SetProgressMessage(Localization.MessageRefreshing, 0);
     base.Refresh();
     if (ActiveView != null)
         ActiveView.Refresh();
     Refresh(CacheType.GitLocks);
     Redraw();
 }
示例#3
0
 public override void Refresh()
 {
     SetProgressMessage(Localization.MessageRefreshing, 0);
     base.Refresh();
     if (ActiveView != null)
     {
         ActiveView.Refresh();
     }
     Redraw();
 }
        /// <summary>
        /// ZoomToFeature
        /// </summary>
        /// <param name="pFeature">IFeature</param>
        protected virtual void ZoomToFeature(IFeature pFeature)
        {
            try
            {
                if (pFeature == null)
                {
                    return;
                }

                var transform = ActiveView.ScreenDisplay.DisplayTransformation;
                var scale     = ConfigurationMain.AppProperties.GetSettingValue("ZoomToPointMapScale", 1000);
                transform.ScaleRatio = scale;

                var pEnv = ActiveView.Extent;
                pEnv.CenterAt((IPoint)pFeature.Shape);
                ActiveView.Extent = pEnv;
                ActiveView.Refresh();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, m_name);
            }
        }
示例#5
0
 public override void Refresh()
 {
     base.Refresh();
     ActiveView.Refresh();
 }