protected override void Initialize(bool initData)
        {
            base.Initialize(initData);

            if (initData)
            {
                _lineCtrl = new OpenPathShapeController()
                {
                    UseDocumentCopy = UseDocument.Directly
                };
                _lineCtrl.InitializeDocument(_doc);
            }
            if (null != _view)
            {
                if (null == _lineCtrl.ViewObject)
                {
                    _lineCtrl.ViewObject = _view.LineGraphicView;
                }

                _splinePointsCtrl = new CardinalSplinePointsController(_view.SplinePointsView, _doc.CurvePoints, _doc.Tension, _doc);
            }
        }
 public override IEnumerable <ControllerAndSetNullMethod> GetSubControllers()
 {
     yield return(new ControllerAndSetNullMethod(_lineCtrl, () => _lineCtrl = null));
     //yield return new ControllerAndSetNullMethod(_splinePointsCtrl, () => _splinePointsCtrl = null);
 }