private void DeleteListItem(ReminderItemDB list) { var itemSelected = list; _database.DeleteReminder(itemSelected.ID); Refresh(); }
private void ListItemTapped(ReminderItemDB param) { ReminderItemDB list = param as ReminderItemDB; IActionSheetButton cancelAction = ActionSheetButton.CreateCancelButton("Cancel", new DelegateCommand(() => { CancelListhighlight(); })); IActionSheetButton destroyAction = ActionSheetButton.CreateDestroyButton("Destroy", new DelegateCommand(() => { DeleteListItem(list); })); _pageDialogService.DisplayActionSheetAsync("My Action Sheet", cancelAction, destroyAction); }