Example #1
0
        static void Main(string[] args)
        {
            //IntPtr location = new IntPtr(1);
            //IntPtr satellite = new IntPtr(1);
            //GpsDevice gps = new GpsDevice(satellite, location);
            GpsDevice gps = new GpsDevice();
            gps.Open();

            Listener l = new Listener();
            l.SubscribeLocation(gps);
            l.SubscribeSatellites(gps);
        }
Example #2
0
        static void Main(string[] args)
        {
            //IntPtr location = new IntPtr(1);
            //IntPtr satellite = new IntPtr(1);
            //GpsDevice gps = new GpsDevice(satellite, location);
            GpsDevice gps = new GpsDevice();

            gps.Open();


            Listener l = new Listener();

            l.SubscribeLocation(gps);
            l.SubscribeSatellites(gps);
        }
Example #3
0
 private void satellite(GpsDevice gps)
 {
     System.Console.WriteLine("SATELLITE");
 }
Example #4
0
 private void location(GpsDevice gps)
 {
     System.Console.WriteLine("LOCATION");
 }
Example #5
0
 public void SubscribeSatellites(GpsDevice gps)
 {
     gps.satellitesChanged += new GpsDevice.SatellitesChangedEventHandler(satellite);
 }
Example #6
0
 public void SubscribeLocation(GpsDevice gps)
 {
     gps.locationChanged += new GpsDevice.LocationChangedEventHandler(location);
 }
Example #7
0
 private void satellite(GpsDevice gps)
 {
     System.Console.WriteLine("SATELLITE");
 }
Example #8
0
 private void location(GpsDevice gps)
 {
     System.Console.WriteLine("LOCATION");
 }
Example #9
0
 public void SubscribeSatellites(GpsDevice gps)
 {
     gps.satellitesChanged += new GpsDevice.SatellitesChangedEventHandler(satellite);
 }
Example #10
0
 public void SubscribeLocation(GpsDevice gps)
 {
     gps.locationChanged += new GpsDevice.LocationChangedEventHandler(location);
 }