private void ConnectionStatusChangedEventHandler(object sender, EventArgs e) { if (!DriverContainer.Driver.IsConnected) { Plotter.ClearPoints(Plot); Plotter.ClearPoints(PlotBool); Plotter.ClearAnnotations(Plot); Plotter.ClearAnnotations(PlotBool); Plot.InvalidatePlot(true); PlotBool.InvalidatePlot(true); IsExportDataEnabled = false; } }