コード例 #1
0
 // Default constructor
 public DateTimePointList()
 {
     XType = DateTimePointType.Time;
     YType = DateTimePointType.Value;
     TType = DateTimePointType.ID;
     aList = new List <DateTimePlotPoint>();
 }
コード例 #2
0
        // 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;
        }
コード例 #3
0
 // 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;
     }
 }
コード例 #4
0
        // 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);
            }
        }
コード例 #5
0
        // 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;
        }
コード例 #6
0
 // Default constructor
 public DateTimePointList()
 {
     XType = DateTimePointType.Time;
     YType = DateTimePointType.Value;
     TType = DateTimePointType.ID;
     aList = new List<DateTimePlotPoint>();
 }