Example #1
0
        private async void DeleteActivityDate(ActivityDateItem item)
        {
            int resCount = await mSqlite.DeleteActivityDateAsync(item);

            if (resCount > 0)
            {
                mViewHolder.ListAdapter.Remove(item);
                UpdateElapsedDate();
                ToastManager.ShowLongTime(Activity, Resource.String.toast_success_delete_activity_date);
            }
            else
            {
                ToastManager.ShowLongTime(Activity, Resource.String.toast_failed_delete_activity_date);
            }
        }