/// <summary> /// Deletes the alarm /// </summary> /// <param name="alarm">Alarm we want to delete</param> public void DeleteAlarm(Alarm alarm) { AlarmSetter.DeleteAlarm(alarm); Realm.Write(() => { Realm.Remove(alarm); }); }
/// <summary> /// Deletes all the alarms /// </summary> public void DeleteAllAlarms() { //remove all from android AlarmSetter.DeleteAllAlarms(Realm.All <Alarm>().ToList()); Realm.Write(() => { Realm.RemoveAll <Alarm>(); }); }