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); }); }
private void OnChkBackgroundChanged(object sender, EventArgs args) { CPUView.InvalidateSurface(); GPUView.InvalidateSurface(); }