Beispiel #1
0
        private void CreateNewSegment(eDrag dragMode, float gridDistance)
        {
            SMPathSegment newPathSeg = _pathSeg.Append();

            newPathSeg.GridDistance = gridDistance;
            // Create the control
            _newSegCtl = _ctlBase.AppendSegmentCtl(newPathSeg);
            //newSegCtl.Size = new Size(_rcHead.Width, _rcHead.Height);
            _ctlBase.MoveItem();
            _newSegCtl.Handoff(_lastMousePosition, dragMode);
        }
Beispiel #2
0
 private void OnMouseUp(object sender, MouseEventArgs e)
 {
     if (_newSegCtl != null)
     {
         _newSegCtl.OnMouseUp(sender, e);
         _newSegCtl = null;
     }
     else
     {
         DragMode = eDrag.None;
     }
     if (IsLast)
     {
         _ctlBase.MoveItem();
     }
 }