public CardinalSplinePointsController(ICardinalSplinePointsView view, List<PointD2D> curvePoints, double tension) { _view = view; _view.CurvePointsCopyTriggered += new Action(EhCurvePointsCopyTriggered); _view.CurvePointsPasteTriggered += new Action(EhCurvePointsPasteTriggered); _view.Tension = tension; _view.CurvePoints = curvePoints; }
public CardinalSplinePointsController(ICardinalSplinePointsView view, List <PointD2D> curvePoints, double tension, GraphicBase documentNode) { _view = view; _doc = documentNode; _view.CurvePointsCopyTriggered += new Action(EhCurvePointsCopyTriggered); _view.CurvePointsCopyAsPhysicalTriggered += new Action(EhCurvePointsCopyPhysicalTriggered); _view.CurvePointsCopyAsLogicalTriggered += new Action(EhCurvePointsCopyLogicalTriggered); _view.CurvePointsPasteTriggered += new Action(EhCurvePointsPasteTriggered); _view.CurvePointsPastePhysicalTriggered += new Action(EhCurvePointsPastePhysicalTriggered); _view.CurvePointsPasteLogicalTriggered += new Action(EhCurvePointsPasteLogicalTriggered); _view.Tension = tension; _view.CurvePoints = curvePoints; }