Exemplo n.º 1
0
 private void editdocument(DocumentOptionPageModel obj)
 {
     Device.BeginInvokeOnMainThread(async() =>
     {
         await CoreMethods.PushPageModel <DocDetailsPageModel>(new Tuple <Document, bool>(obj.document, false));
         RaisePropertyChanged();
     });
 }
Exemplo n.º 2
0
 private void delete(DocumentOptionPageModel obj)
 {
     Task.Run(async() =>
     {
         await _documentServices.DeleteDocument(obj.document);
         MessagingCenter.Send(this, "documentdeleted");
         Device.BeginInvokeOnMainThread(async() =>
         {
             await CoreMethods.PopPageModel();
             RaisePropertyChanged();
         });
         if (_restService.DeleteDocument(obj.document))
         {
             _dialogServices.ShowMessage(obj.document.type + "supprimer avec succes", false);
         }
         else
         {
             _dialogServices.ShowMessage("Error", true);
         }
     });
 }