Example #1
0
 /// <summary>
 /// Need another function because Xamarin generates an Invalid IL if used inline above
 /// </summary>
 private async Task CommitThis(EditSourceViewModel viewModel, LiteComposer composer, string content, string message)
 {
     try
     {
         await this.DoWorkAsync("Commiting...", () => viewModel.Commit(content, message));
         NavigationController.DismissViewController(true, null);
     }
     catch (Exception ex)
     {
         AlertDialogService.ShowAlert("Error", ex.Message);
         composer.EnableSendButton = true;
     }
 }