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);
                }
            }
        }
        private static StatusInfo ProcessDataItem(MTConnectDevices.DataItem item)
        {
            var info = new StatusInfo();

            info.InfoType = StatusInfoType.MTConnect_Data_Item;

            info.Category = item.Category;
            info.Address  = item.TypePath;
            info.Name     = item.Name;
            info.Id       = item.Id;
            info.Type     = item.Type;
            info.SubType  = item.SubType;

            return(info);
        }
        private static StatusInfo ProcessDataItem(MTConnect.Application.Components.DataItem item)
        {
            var info = new StatusInfo();

            info.InfoType = StatusInfoType.MTConnect_Data_Item;

            info.Category = item.Category;
            info.Address  = item.FullAddress;
            info.Name     = item.Name;
            info.Id       = item.Id;
            info.Type     = item.Type;
            info.SubType  = item.SubType;

            return(info);
        }
        private static StatusInfo ProcessDataItem(MTConnect.Application.Components.DataItem item)
        {
            var info = new StatusInfo();
            info.InfoType = StatusInfoType.MTConnect_Data_Item;

            info.Category = item.Category;
            info.Address = item.FullAddress;
            info.Name = item.Name;
            info.Id = item.Id;
            info.Type = item.Type;
            info.SubType = item.SubType;

            return info;
        }