protected override void SetEditmodeOnUpActions(EditmodeBase mode) { EditmodeHandlesPoints handlesPoints = mode as EditmodeHandlesPoints; mode.SetUpFunction(delegate { _updater.UpdateInlineArea(); _hoverData.UnHoverCurrentEverything(); if (handlesPoints.mode == Mode.movePoint) { _handlePointsUpdater.UnselectMultiSelection(); } }); }
protected override void SetEditmodeClickAndDragActions(EditmodeBase mode) { EditmodeHandlesPoints handlesPoints = mode as EditmodeHandlesPoints; switch (handlesPoints.mode) { case Mode.moveHandle: mode.SetClickFunction(delegate { _handlePointsUpdater.SelectPathObject(); _handlePointsUpdater.SelectBezierSegment(HandlesPointsUpdater.SelectionMode.Handle); }); mode.SetDragFunction(delegate { _handlePointsUpdater.UpdateCurrentBezierHandles(); }); break; case Mode.movePoint: mode.SetClickFunction(delegate { _handlePointsUpdater.SelectPathObject(); _handlePointsUpdater.SelectBezierSegment(HandlesPointsUpdater.SelectionMode.Point); }); mode.SetDragFunction(_handlePointsUpdater.MovePoint); break; case Mode.select: mode.SetClickFunction(_handlePointsUpdater.SelectPathObject); break; } }