Пример #1
0
        private void PollData()
        {
            var read = ParentMetric.ReadData(_buffer);

            if (read > 0)
            {
                _line.Add(_buffer);
                _redraw = true;
            }
        }
Пример #2
0
        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);
            }
        }