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); }
private void satellite(GpsDevice gps) { System.Console.WriteLine("SATELLITE"); }
private void location(GpsDevice gps) { System.Console.WriteLine("LOCATION"); }
public void SubscribeSatellites(GpsDevice gps) { gps.satellitesChanged += new GpsDevice.SatellitesChangedEventHandler(satellite); }
public void SubscribeLocation(GpsDevice gps) { gps.locationChanged += new GpsDevice.LocationChangedEventHandler(location); }