示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PrototypeBackend.DateTimeValue"/> struct.
 /// </summary>
 /// <param name="copy">Copy.</param>
 public DateTimeValue(DateTimeValue copy)
 {
     Value = copy.Value;
     Time = copy.Time;
 }
示例#2
0
文件: APin.cs 项目: Onkeliroh/DSA
 private void AddRawValue(DateTimeValue value)
 {
     RAWValues.Add (value);
     if (OnNewRAWValue != null)
     {
         OnNewRAWValue.Invoke (
             this,
             new NewMeasurementValueArgs () {
                 RAW = value.Value,
                 Value = value.Value,
                 Time = DateTime.FromOADate (value.Time)
             }
         );
     }
 }