void ProxyDataReturnedCallback(DeviceBase device, int address, int data) { if (this.InvokeRequired) { var d = new DeviceBase.DeviceDataReturnedCallback(ProxyDataReturnedCallback); this.BeginInvoke(d, new object[] { device, address, data }); } else { Grapher.Plot(Proxy, AmplitudePlot); } }
public void ZapDataReturnedCallback(DeviceBase device, int address, int data) { if (this.InvokeRequired) { var d = new DeviceBase.DeviceDataReturnedCallback(ZapDataReturnedCallback); this.BeginInvoke(d, new object[] { device, address, data }); } else { Grapher.Plot(Device, AmplitudePlot); Proxy.ReportOutputData(new ResponseCommand() { Address = address, Data = data }); } }