Source/NFX.WinForms/Controls/ChartKit/Temporal/Series.cs
/// <summary>
/// Replace last data sample.
/// This function requires that the new sample has the same timestamp
/// as the last sample in the time series data.
/// </summary>
Replace last data sample.
This function requires that the new sample has the same timestamp
as the last sample in the time series data.
Replace last data sample . This function requires that the new sample has the same timestamp as the last sample in the time series data .
public void ReplaceLast(ITimeSeriesSample sample)
    {
      var last = m_Data.Last;
      if (last == null)
        throw new WFormsException(StringConsts.ARGUMENT_ERROR + "last sample not assigned!");
      if (sample.TimeStamp < last.Value.TimeStamp)
        throw new WFormsException(StringConsts.ARGUMENT_ERROR +
          "inconsistent time stamp of the new sample (expected: {0}, got: {1}!".Args(
            last.Value.TimeStamp, sample.TimeStamp));
      m_Data.Last.Value = sample;
    }
public void ReplaceLast ( ITimeSeriesSample sample ) { var last = m_Data . Last ; if ( last == null ) throw new WFormsException ( StringConsts . ARGUMENT_ERROR + " " ) ; if ( sample . TimeStamp < last . Value . TimeStamp ) throw new WFormsException ( StringConsts . ARGUMENT_ERROR + " " . Args ( last . Value . TimeStamp , sample . TimeStamp ) ) ; m_Data . Last . Value = sample ; }
Replace last data sample.
Replace last data sample .
sample
ITimeSeriesSample