示例#1
0
        private void StartTimer()
        {
            Device.StartTimer(new TimeSpan(50000), () =>
            {
                if (!running || GPUView.CanvasSize.Width < 0)
                {
                    return(true);
                }

                if (lines.Count > 40)
                {
                    lines.Dequeue();
                }

                // Add new line
                lastLine = GetNextLine();
                lines.Enqueue(lastLine);

                CPUView.InvalidateSurface();
                GPUView.InvalidateSurface();

                return(true);
            });
        }
示例#2
0
 private void OnChkBackgroundChanged(object sender, EventArgs args)
 {
     CPUView.InvalidateSurface();
     GPUView.InvalidateSurface();
 }