示例#1
0
        public void Add(DateTime dtTime, double dValue, int iID = 0, string sTag = "")
        {
            DateTimePlotPoint dtPoint = new DateTimePlotPoint();

            dtPoint.Time  = dtTime;
            dtPoint.Value = dValue;
            dtPoint.ID    = iID;
            dtPoint.Tag   = sTag;
            aList.Add(dtPoint);
        }
 // 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;
     }
 }
示例#3
0
 // Indexer: get the Sample instance at the specified ordinal position in the list
 public PointPair this[int index]
 {
     get
     {
         PointPair         pt     = new PointPair();
         DateTimePlotPoint aPoint = aList[index];
         pt.X   = GetValue(aPoint, XType);
         pt.Y   = GetValue(aPoint, YType);
         pt.Tag = aPoint.Tag;
         return(pt);
     }
     set
     {
     }
 }
示例#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);
            }
        }
 public void Add(DateTime dtTime, double dValue, int iID = 0, string sTag = "")
 {
     DateTimePlotPoint dtPoint = new DateTimePlotPoint();
     dtPoint.Time = dtTime;
     dtPoint.Value = dValue;
     dtPoint.ID = iID;
     dtPoint.Tag = sTag;
     aList.Add(dtPoint);
 }
 // Add a sample to the collection
 public void Add(DateTimePlotPoint dtPoint)
 {
     aList.Add(dtPoint);
 }
示例#7
0
 // Add a sample to the collection
 public void Add(DateTimePlotPoint dtPoint)
 {
     aList.Add(dtPoint);
 }