private void StartRegionSelection() { if (IsCursorOnNode) { return; } InputManager.Update(Form); // If it's a touch event we don't have the correct point yet, so refresh it now BaseShape shape = GetIntersectShape(); if (shape != null && shape.ShapeType == CurrentTool) // Select shape { IsMoving = true; shape.OnMoving(); Form.Cursor = Cursors.SizeAll; CurrentShape = shape; SelectCurrentShape(); } else if (!IsCreating) // Create new shape { DeselectCurrentShape(); shape = AddShape(); shape.OnCreating(); } }
private void StartRegionSelection() { if (IsCursorOnNode) { return; } BaseShape shape = GetIntersectShape(); if (shape != null && shape.ShapeType == CurrentShapeType) // Select shape { IsMoving = true; CurrentShape = shape; SelectCurrentShape(); } else if (!IsCreating) // Create new shape { DeselectCurrentShape(); shape = AddShape(); shape.OnCreating(); } }