// Default constructor public DateTimePointList() { XType = DateTimePointType.Time; YType = DateTimePointType.Value; TType = DateTimePointType.ID; aList = new List <DateTimePlotPoint>(); }
// Copy constructor public DateTimePointList(DateTimePointList rhs) { XType = rhs.XType; YType = rhs.YType; TType = rhs.TType; // Don't duplicate the data values, just copy the reference to the List this.aList = rhs.aList; }
// Get the specified data type from the specified sample public double GetValue(DateTimePlotPoint Point, DateTimePointType Type) { switch (Type) { case DateTimePointType.Time: return Point.Time.ToOADate(); case DateTimePointType.Value: return Point.Value; case DateTimePointType.ID: return Point.ID; default: return PointPair.Missing; } }
// Get the specified data type from the specified sample public double GetValue(DateTimePlotPoint Point, DateTimePointType Type) { switch (Type) { case DateTimePointType.Time: return(Point.Time.ToOADate()); case DateTimePointType.Value: return(Point.Value); case DateTimePointType.ID: return(Point.ID); default: return(PointPair.Missing); } }
// Default constructor public DateTimePointList() { XType = DateTimePointType.Time; YType = DateTimePointType.Value; TType = DateTimePointType.ID; aList = new List<DateTimePlotPoint>(); }