public void Pause() { if (!paused) { this.paused = true; var rows = GetViewportRows(); this.snapshot.Clear(); foreach (var s in rows) { snapshot.Add(s); } this.Refresh(); } }