Beispiel #1
0
        public override bool OnOptionsItemSelected(IMenuItem item)
        {
            if (TimeEntry.State == TimeEntryState.New)
            {
                TimeEntry.DeleteAsync();
            }
            Activity.OnBackPressed();

            return(base.OnOptionsItemSelected(item));
        }
        private async void OnDeleteImageButtonClick (object sender, EventArgs e)
        {
            if (TimeEntry == null) {
                return;
            }

            await TimeEntry.DeleteAsync ();
            ResetModel ();

            Toast.MakeText (Activity, Resource.String.CurrentTimeEntryEditDeleteToast, ToastLength.Short).Show ();
        }