private void DetectPointCompleted(SpotInspectionResult res, object userToken) { res.Id = userToken as string; if (_sn == res.Id) { _dataAcquisition.MonitorDataReader.DetectPointCompletedEvent -= DetectPointCompleted; _dataAcquisition.SendData("SpotInspectionResult", CommandTextParser.GetJsonSerialization <SpotInspectionResult>(res)); } }
private void DetectPointCompleted(SpotInspectionResult res, object userToken) { res.Id = userToken as string; SendData("SpotInspectionResult", CommandTextParser.GetJsonSerialization <SpotInspectionResult>(res)); }