public SettingsTab() { InitializeComponent(); BindingContext = App.AppSettings; WeekDay.IsVisible = true; WeekDay.IsFromSettingsTab = true; WeekDay.SelectDays(App.AppSettings.DefaultSelectedDays); Disappearing += new EventHandler(SaveSelectedDays); }
public NewAlarm(Alarm AlarmToEdit) { this.AlarmToEdit = AlarmToEdit; InitializeComponent(); InitializeUIComponents(); AlarmTime.Time = AlarmToEdit.Time; AlarmName.Text = AlarmToEdit.AlarmName; IsRepeated.On = AlarmToEdit.IsRepeated; IsNagging.On = AlarmToEdit.IsNagging; WeekDay.SelectDays(AlarmToEdit.SelectedDaysBool); Nagging.SetNaggingSettings(AlarmToEdit.AlarmsBefore, AlarmToEdit.AlarmsAfter, AlarmToEdit.Interval); Title = "Edit " + AlarmToEdit.AlarmName; }