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); }
public Curve() { Id = ShortGuid.NewGuid(); _name = string.Empty; _description = string.Empty; _xData = null; _yData = null; CurveOptions = new CurveOptions(); Rules = new BusinessRuleSet(); }
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(); }
public CurveTemplate() { CurveOptions = new CurveOptions(); xData = new CurveDataTemplate(); yData = new CurveDataTemplate(); }