private void PollData() { var read = ParentMetric.ReadData(_buffer); if (read > 0) { _line.Add(_buffer); _redraw = true; } }
private void PollData() { var avail = ParentMetric.Available; for (int i = 0; i < avail; i++) { var read = ParentMetric.ReadData(_buffer); if (read == 0) { break; } _plot.AddFrame(_buffer.Data); } }