示例#1
0
 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);
     }
 }
示例#2
0
 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
         });
     }
 }