Beispiel #1
0
        private async void DeleteActivity(ActivityItem item)
        {
            int resCount = await mSqlite.DeleteActivityAsync(item);

            if (resCount > 0)
            {
                mListAdapter.Remove(item);
                ToastManager.ShowLongTime(Activity, Resource.String.toast_success_deleted_activity);
            }
            else
            {
                ToastManager.ShowLongTime(Activity, Resource.String.toast_failed_delete_activity);
            }
        }