Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 /// <summary>
 /// Called when the shape is unselected
 /// </summary>
 public override void OnUnSelected()
 {
     SafeRemoveHotSpot(_hotSpotMove);
     _hotSpotMove = null;
     base.OnUnSelected();
 }