HotSpot2D _hotSpotMove; // a hotspot for the BoxSize X /// <summary> /// Called when the shape is selected /// </summary> public override void OnSelected() { base.OnSelected(); System.Diagnostics.Debug.Assert(_hotSpotMove == null); _hotSpotMove = new HotSpot2D(this, 20.0f); _hotSpotMove.ToolTipText = "Move"; EditorManager.ActiveView.HotSpots.Add(_hotSpotMove); }
/// <summary> /// Called when the shape is unselected /// </summary> public override void OnUnSelected() { SafeRemoveHotSpot(_hotSpotMove); _hotSpotMove = null; base.OnUnSelected(); }