private const float ADDMMPERDEGREE = 0.05f; // ie 90deg = 4.5 extra (90° is the maximum considered) public override VerbResult Start(EditableView.ClickPosition position) { m_Targets = new List <PointF>(); m_Targets.Add(position.Snapped); Debug.Assert(LineStyle != null && FillStyle != null); LineStyle.SetDefaults(); FillStyle.Colour = Color.Empty; FillStyle.Pattern = FillStyleC.Patterns.Solid; g_dtLastTargetAdded = DateTime.Now; return(VerbResult.Continuing); }
public RectangleShape(RectangleF rct) { // used by the splatter to create a rectangle bordering the page Vertices.Add(new PointF(rct.X, rct.Y)); Vertices.Add(new PointF(rct.Right, rct.Y)); Vertices.Add(new PointF(rct.Right, rct.Bottom)); Vertices.Add(new PointF(rct.X, rct.Bottom)); m_DefinedVertices = 4; LineStyle.SetDefaults(); // otherwise error reports cannot be loaded FillStyle.SetDefaults(); FillStyle.Colour = Color.Transparent; base.Status = StatusValues.Complete; }