public async void addAlarms() { var alarm = new AlarmModel(); //alarm.Id = Id; //alarm.AlarmName = AlarmName; //alarm.Occurrence = Occurrence; //alarm.SnoozeMin = SnoozeMin; //alarm.Sound = Sound; //alarm.Time = Time; //alarm.IsEnabled = IsEnable; //alarm.GameName = GameName; //Test alarm.Id = AlarmCount++; alarm.Time = Time; alarm.AlarmName = "Alarm test"; alarm.Occurrence = "Mon, Tue, Wed"; Alarms.Add(alarm); await saveAlarmDataAsync(); }
public MainViewModel() { alarm = new AlarmModel(); Alarms = new ObservableCollection<AlarmModel>(); }