Example #1
0
        private void TryUnregisterCursorInfoProvider()
        {
            //光标信息窗口没有显示
            if (!_session.SmartWindowManager.SmartToolWindowFactory.IsDisplayed(9000))
            {
                return;
            }
            ICursorInfoDisplayer dis = _session.SmartWindowManager.CursorInfoDisplayer;

            dis.UnregisterProvider(this);
        }
Example #2
0
 private void TryExtCursorInfoForFeaturesDisplay(IPixelIndexMapper dltResult)
 {
     //光标信息窗口没有显示
     if (!_session.SmartWindowManager.SmartToolWindowFactory.IsDisplayed(9000))
     {
         return;
     }
     _featuresSize = dltResult.Size;
     if (dltResult.Tag != null && dltResult.Tag is ICursorDisplayedFeatures)
     {
         ICursorInfoDisplayer dis = _session.SmartWindowManager.CursorInfoDisplayer;
         if (dis != null)
         {
             dis.RegisterProvider(this as ICursorInfoProvider);
         }
         _featureCollectionName = (dltResult.Tag as ICursorDisplayedFeatures).Name;
         _features = dltResult.Tag as ICursorDisplayedFeatures;
     }
 }