Ejemplo n.º 1
0
 public async void EditEvent(Event newItem)
 {
     if (await _databaseConnector.EditEvent(newItem) == false)
     {
         return;
     }
     Collection.Remove(Collection.Find(el => el.Id == newItem.Id));
     Collection.Add(newItem);
     CollectionChanged?.Invoke();
     CrossLocalNotifications.Current.Cancel(newItem.Id);
     CrossLocalNotifications.Current.Show("Notification", newItem.Description, newItem.Id, newItem.DateTime);
 }