using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Tango.Core; using Tango.PMR.ColorLab; using Tango.SharedUI; namespace Tango.MachineStudio.RML.ViewModels { public class CalibrationDataPointVM : ExtendedObject { private double _x; public double X { get { return _x; } set { _x = value; RaisePropertyChangedAuto(); } } private double _y; public double Y { get { return _y; } set { _y = value; RaisePropertyChangedAuto(); } } private int _index; public int Index { get { return _index; } set { _index = value; RaisePropertyChangedAuto(); } } public CalibrationDataPointVM() { } public CalibrationDataPointVM(double x, double y) { X = x; Y = y; } public CalibrationDataPointVM(CalibrationPoint calibrationPoint) : this(calibrationPoint.X, calibrationPoint.Y) { } public CalibrationPoint ToPMR() { return new CalibrationPoint() { X = X, Y = Y, }; } } }