Added ShowResizeNodes to BaseShape

This commit is contained in:
Jaex 2016-08-15 02:02:27 +03:00
parent 5762b08e5e
commit 2497875b0a
3 changed files with 4 additions and 1 deletions

View file

@ -76,6 +76,8 @@ public Point EndPosition
public virtual bool IsRegionShape { get; } = false;
public virtual bool ShowResizeNodes { get; } = true;
public virtual bool FixedSize { get; } = false;
internal ShapeManager Manager { get; set; }

View file

@ -35,6 +35,7 @@ public class StepDrawingShape : BaseDrawingShape
private const int DefaultSize = 30;
public override ShapeType ShapeType { get; } = ShapeType.DrawingStep;
public override bool ShowResizeNodes { get; } = false;
public override bool FixedSize { get; } = true;
public int Number { get; set; }

View file

@ -1472,7 +1472,7 @@ private void SelectShape()
{
BaseShape shape = CurrentShape;
if (shape != null && !shape.FixedSize && !CurrentRectangle.IsEmpty)
if (shape != null && shape.ShowResizeNodes && !CurrentRectangle.IsEmpty)
{
NodesVisible = true;
}