Beispiel #1
0
        public async void OnEnteredActivityDate(string memo)
        {
            var item = new ActivityDateItem()
            {
                ActivityId = mActivityId,
                Memo       = memo,
                Date       = DateTime.Now
            };

            var resItem = await mSqlite.AddActivityDateAsync(item);

            if (resItem != null)
            {
                mViewHolder.ListAdapter.Insert(resItem, 0);
                UpdateElapsedDate();
                ToastManager.ShowLongTime(Activity, Resource.String.toast_success_added_activity_date);
            }
            else
            {
                ToastManager.ShowLongTime(Activity, Resource.String.toast_failed_added_activity_date);
            }
        }