Ejemplo n.º 1
0
        public async void AddEvent(Event item)
        {
            if (await _databaseConnector.AddEvent(item) == false)
            {
                return;
            }
            Event element = await _databaseConnector.GetEvent(item.Day, item.Mounth, item.Year);

            if (element == null)
            {
                return;
            }
            Collection.Add(element);
            CollectionChanged?.Invoke();
            CrossLocalNotifications.Current.Show("Notification", element.Description, element.Id, element.DateTime);
        }