Ejemplo n.º 1
0
 private void OnSync(object param)
 {
     this.BusyMessage = "Synchronizing";
     this.IsBusy      = true;
     Mobeelizer.Sync((error) =>
     {
         this.IsBusy = false;
         if (error == null)
         {
             Deployment.Current.Dispatcher.BeginInvoke(new Action(() =>
             {
                 this.RefreshEntitiesList();
             }));
         }
         else
         {
             navigationService.ShowMessage(Resources.Errors.e_title, Resources.Errors.e_syncFailed);
         }
     });
 }