Exemplo n.º 1
0
 protected virtual void OnLocationLoadSuccess(LocationEventArgs eventArgs)
 {
     GeoLocationEventHandler handler = LocationLoadSuccess;
     if (handler != null)
     {
         eventArgs.Location = DeviceLocation;
         handler(this, eventArgs);
     }
 }
Exemplo n.º 2
0
 private void LocationManagerOnLocationLoadSuccess(object sender, LocationEventArgs locationEventArgs)
 {
     var DSManager = new DealServerFacade();
     deviceLocation = locationEventArgs.Location;
     DSManager.DealsDownloadSuccess += DsManagerOnDealsDownloadSuccess;
     DSManager.DownloadDealsAsync(new DealServerQueryModel()
     {
         Count = 10,
         Latitude = deviceLocation.Latitude,
         Longitude = deviceLocation.Longitude,
         Refinement = new QueryRefineModel()
         {
             Keyword = "",
             Offset = 0,
             Ranking = "",
             Resultsperbiz = 1,
             TimeOut = 10,
             source = ""
         }
     });
 }