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