Exemplo n.º 1
0
        private async void UpdateData()
        {
            while (true)
            {
                await Task.Delay(10);

                data.Remove(0);
                data.Add(data.Size(), new ChartDataPoint(wave1, Math.Sin(wave1 * (Math.PI / 180.0))));
                wave1++;

                data2.Remove(0);
                data2.Add(data2.Size(), new ChartDataPoint(wave1, Math.Sin(wave2 * (Math.PI / 180.0))));
                wave2++;
            }
        }