private void HandlePositiveButtonClick(object sender, DialogClickEventArgs e) { var dialog = (AlertDialog)sender; ReminderItem reminder = new ReminderItem(); reminder.Date = date; reminder.Text = ReminderEditText.Text; reminderAdapter.Add(reminder); dialog.Dismiss(); }
public async void RemoveReminderItem(ReminderItem item) { try { await reminderTable.DeleteAsync(item); } catch (Exception e) { CreateAndShowDialog(e, "Unable To Remove Reminder"); } reminderAdapter.Remove(item); }
// TODO: Incomplete & Needs To Tell If Data Is Different // TODO: Need To Incoporate Adapter Smoothly public async void UpdateReminderItem(ReminderItem item) { try { await reminderTable.UpdateAsync(item); } catch (Exception e) { CreateAndShowDialog(e, "Unable To Update Reminder"); } }
public async void AddReminderItem(ReminderItem item) { try { await reminderTable.InsertAsync(item); } catch (Exception e) { CreateAndShowDialog(e, "Unable To Insert Reminder"); } }