Exemplo n.º 1
0
        public CurveViewModel Configure(Curve curve)
        {
            Curve = curve;
            InitCurve();

            return this;
        }
Exemplo n.º 2
0
 public void Init(Curve fromCurve)
 {
     Name = fromCurve.Name;
     Min = fromCurve.Points.First().X;
     Max = fromCurve.Points.Skip(fromCurve.Points.Count - 1).First().X;
     PointCount = fromCurve.Points.Count();
 }
Exemplo n.º 3
0
        public IEnumerable<IResult> Ok()
        {
            if (pointCount < 2)
                pointCount = 2;

            NewCurve = Curve.Create(Name, Min, Max, PointCount);
            yield return Result.Close();
        }
Exemplo n.º 4
0
 public CurveGlobal(Curve curve)
 {
     this.curve = curve;
 }
Exemplo n.º 5
0
 public void RemoveCurve(Curve curve)
 {
     Curves.Remove(curve);
 }
Exemplo n.º 6
0
 public void AddNewCurve(Curve curve)
 {
     Curves.Add(curve);
     Curves = new List<Curve>(Curves.OrderBy(c => c.Name));
 }
Exemplo n.º 7
0
 public void Reset(Curve newCurve)
 {
     Points = newCurve.Points;
 }