The GPS event args.
Inheritance: System.EventArgs
示例#1
0
文件: Gps.cs 项目: marcusanth/YAMP
        void OnReadingChanged(Sensor sender, PositionChangedEventArgs args)
        {
            var handler    = changed;
            var coordinate = args.Position != null ? args.Position.Coordinate : null;

            if (coordinate != null)
            {
                if (handler != null)
                {
                    var value = ConvertToPosition(coordinate);
                    var e     = new GpsEventArgs(value);
                    handler.Invoke(this, e);
                }

                position = coordinate;
            }
        }
示例#2
0
文件: Gps.cs 项目: FlorianRappl/YAMP
        void OnReadingChanged(Sensor sender, PositionChangedEventArgs args)
        {
            var handler = changed;
            var coordinate = args.Position != null ? args.Position.Coordinate : null;

            if (coordinate != null)
            {
                if (handler != null)
                {
                    var value = ConvertToPosition(coordinate);
                    var e = new GpsEventArgs(value);
                    handler.Invoke(this, e);
                }

                position = coordinate;
            }
        }