public void SetPlotObject(PlotReceiver p) { plot = p; plot.error +=new PlotReceiver.PlotError(ErrorMsg); }