示例#1
0
        void AddSpecificationComponent(SpecificationComponent specificationComponent)
        {
            specificationComponent.SpecificationChanged += SpecificationChanged;
            specificationComponent.InsertLength         += InsertLength;
            specificationComponent.SelectionChanged     += SelectionChanged;
            specificationComponents.Add(specificationComponent);

            RebuildSegmentComponents();

            Changed();

            RebuildCurveSpecification();

            curveOptimizer.Submit(nextSpecification);
        }
示例#2
0
        void RemoveSelectedSpecificationComponent(SpecificationComponent pointSpecificationComponent)
        {
            specificationComponents.Remove(pointSpecificationComponent);

            if (!specificationComponents.Any() && RemoveCurve != null)
            {
                RemoveCurve();
            }
            else
            {
                RebuildSegmentComponents();

                Changed();

                RebuildCurveSpecification();

                curveOptimizer.Submit(nextSpecification);
            }
        }
示例#3
0
        void AddSpecification(double position)
        {
            SpecificationComponent pointSpecificationComponent = new SpecificationComponent(this, this, position, Enumerables.Create <CurveSpecification>());

            AddSpecificationComponent(pointSpecificationComponent);
        }