Exemplo n.º 1
0
 private void BackgroundService_LocationChanged(object sender, BaseService.CoordinatesChangedEventArgs e)
 {
     if (_started)
     {
         DateTime current = e.Location.Time.ToDateTime();
         if (current >= _startTime)
             _currentLocation = e.Location;
     }
 }
Exemplo n.º 2
0
        void BackgroundService_LocationChanged(object sender, BaseService.CoordinatesChangedEventArgs e)
        {
            var args = new LocationEventArgs(e.Location.Latitude
                , e.Location.Longitude
                , e.Location.Time.ToDateTime()
                , e.Location.Speed
                , e.Location.Bearing
                , e.SatellitesCount
                , e.Location.Altitude);

            OnLocationChanged(args);
        }
Exemplo n.º 3
0
 public ServiceBinder(BaseService service)
 {
     this.Service = service;
 }
Exemplo n.º 4
0
        public ServiceBinder(BaseService service)
		{
            this.Service = service;
		}
Exemplo n.º 5
0
        public ServiceBinder(BaseService service)
		{
            Service = service;
		}