示例#1
0
 /// <summary>
 /// Implements <see cref="CADability.IDisplayHotSpots.ReloadProperties ()"/>
 /// </summary>
 public void ReloadProperties()
 {
     if (showProperties != null)
     {
         for (int i = 0; i < showProperties.Length; ++i)
         {
             IDisplayHotSpots dhsp = showProperties[i] as IDisplayHotSpots;
             if (dhsp != null)
             {
                 dhsp.ReloadProperties();
             }
         }
     }
 }
示例#2
0
 public void SetGeoObjectList(GeoObjectList SelectedObjects)
 {
     for (int i = 0; i < selectedObjects.Count; ++i)
     {
         selectedObjects[i].DidChangeEvent -= new CADability.GeoObject.ChangeDelegate(GeoObjectDidChange);
     }
     selectedObjects = SelectedObjects;
     for (int i = 0; i < selectedObjects.Count; ++i)
     {
         selectedObjects[i].DidChangeEvent += new CADability.GeoObject.ChangeDelegate(GeoObjectDidChange);
     }
     if (showProperties != null)
     {
         for (int i = 0; i < showProperties.Length; ++i)
         {
             IDisplayHotSpots hsp = showProperties[i] as IDisplayHotSpots;
             if (hsp != null)
             {
                 hsp.HotspotChangedEvent -= new HotspotChangedDelegate(OnSubHotspotChanged);
             }
             IGeoObjectShowProperty gsp = showProperties[i] as IGeoObjectShowProperty;
             if (gsp != null)
             {
                 gsp.CreateContextMenueEvent -= new CreateContextMenueDelegate(OnCreateSubContextMenue);
             }
         }
     }
     showProperties        = null;
     focusedSelectedObject = null;
     if (propertyPage != null)
     {
         propertyPage.Refresh(this);
         // TODO: muss woanders hin, geht hier nicht!
         if (multiObjectsProperties != null)
         {
             propertyPage.OpenSubEntries(multiObjectsProperties.attributeProperties, true);
         }
     }
 }