Пример #1
0
        private void ReceiverOnTransponderDataReady(object sender, RawTransponderDataEventArgs e)
        {
            List <Plane.Plane> tempPlanes = new List <Plane.Plane>();

            foreach (var data in e.TransponderData)
            {
                tempPlanes.Add(_dataFormatter.FormatFromString(data));
            }
        }
Пример #2
0
        private void ReceiverOnTransponderDataReady(object sender, RawTransponderDataEventArgs e)
        {
            List <Plane.Plane> tempPlanes = new List <Plane.Plane>();

            foreach (var data in e.TransponderData)
            {
                tempPlanes.Add(_dataFormatter.FormatFromString(data));
                //Console.WriteLine(data.ToString());
            }

            if (ItemArrivedReceived != null)
            {
                ItemArrivedReceived(this, new PlaneDetectedEvent {
                    planes = tempPlanes
                });
            }
        }