public void GetSentData(EventData data) { if (data != null) { if (data.Id == "MTCONNECT_PROBE") { if (data.Data02 != null) { var infos = StatusInfo.GetList((MTConnectDevices.Document)data.Data02); if (infos.Count > 0) { statusInfos = infos; } } else { SendStatusData(null); } } else if (data.Id == "MTCONNECT_CURRENT" && data.Data02 != null) { StatusInfo.ProcessList((MTConnectStreams.Document)data.Data02, statusInfos); SendStatusData(statusInfos); } } }
public void GetSentData(EventData data) { if (data != null) { if (data.Id == "MTCONNECT_PROBE") { if (data.Data02 != null) { var infos = StatusInfo.GetList((MTConnect.Application.Components.ReturnData)data.Data02); if (infos.Count > 0) { statusInfos = infos; } } else { SendStatusData(null); } } else if (data.Id == "MTCONNECT_CURRENT" && data.Data02 != null) { StatusInfo.ProcessList((MTConnect.Application.Streams.ReturnData)data.Data02, statusInfos); SendStatusData(statusInfos); } } }