Пример #1
0
 /// <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);
     });
 }
Пример #2
0
 /// <summary>
 /// Deletes all the alarms
 /// </summary>
 public void DeleteAllAlarms()
 {
     //remove all from android
     AlarmSetter.DeleteAllAlarms(Realm.All <Alarm>().ToList());
     Realm.Write(() =>
     {
         Realm.RemoveAll <Alarm>();
     });
 }