Exemplo n.º 1
0
 private void CheckIfCategoryCanBeDeleted(int categoryId)
 {
     if (SilverCoinsManager.GetTransactionsByCategory(categoryId).Any())
     {
         Toast.MakeText(this, Utils.Constants.CategoryDeletionWarning, ToastLength.Short).Show();
     }
     else
     {
         SilverCoinsManager.DeleteCategory(categoryId);
         OnBackPressed();
     }
 }