public ScatterplotBox SetLinesVisible(bool visible) { if (this.InvokeRequired) { this.Invoke((Action)(() => SetLinesVisible(visible))); return this; } scatterplotView1.LinesVisible = visible; scatterplotView1.UpdateGraph(); Refresh(); return this; }