Ejemplo n.º 1
0
 public void UpdateFrom(Curve curve)
 {
     Name        = curve.Name;
     xData       = curve.xData;
     yData       = curve.yData;
     xDimension  = curve.xDimension;
     yDimension  = curve.yDimension;
     Description = curve.Description;
     CurveOptions.UpdateFrom(curve.CurveOptions);
 }
Ejemplo n.º 2
0
 public Curve()
 {
     Id           = ShortGuid.NewGuid();
     _name        = string.Empty;
     _description = string.Empty;
     _xData       = null;
     _yData       = null;
     CurveOptions = new CurveOptions();
     Rules        = new BusinessRuleSet();
 }
Ejemplo n.º 3
0
        public void UpdatePropertiesFrom(IUpdatable source, ICloneManager cloneManager)
        {
            var sourceCurveTemplate = source as CurveTemplate;

            if (sourceCurveTemplate == null)
            {
                return;
            }
            xData.UpdateFrom(sourceCurveTemplate.xData);
            yData.UpdateFrom(sourceCurveTemplate.yData);
            Name         = sourceCurveTemplate.Name;
            CurveOptions = sourceCurveTemplate.CurveOptions.Clone();
        }
Ejemplo n.º 4
0
 public CurveTemplate()
 {
     CurveOptions = new CurveOptions();
     xData        = new CurveDataTemplate();
     yData        = new CurveDataTemplate();
 }