Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        public MainViewModel()
        {
            alarm = new AlarmModel();
            Alarms = new ObservableCollection<AlarmModel>();

        }