protected override bool OnStart(object[] args)
 {
     _managerCursor.SetCursor(CursorType.ArrowMove);
     _moveObjects = _selectableController.Value;
     _operationLayer.AddDraw(MoveDraw);
     return(true);
 }
示例#2
0
        protected override bool OnChange(object[] args)
        {
            if (!_selectRectangle)
            {
                _selectRectangle = SKPoint.Distance(_startPointControl, _currentPointControl) >= OperationOptions.RectangleToleranceRadius;
                if (_selectRectangle)
                {
                    _managerCursor.SetCursor(CursorType.ArrowSelectMany);
                    _operationLayer.AddDraw(DrawRect);
                }
            }

            if (_selectRectangle)
            {
                _operationLayer.Invalidate();
            }

            return(true);
        }