private void BtSchedule_Click(object sender, RoutedEventArgs e) { BtInstall.IsEnabled = false; BtSchedule.IsEnabled = false; if (_isReschedule) { SqlCe.UpdateAppSchedule(_scheduleId, TpPicker.SelectedDate); Globals.Log.Information($"Updated sup schedule with id '{_scheduleId}' to execute at '{TpPicker.SelectedDate}'"); } else { _isReschedule = true; _scheduleId = SqlCe.CreateSupSchedule(TpPicker.SelectedDate); Globals.Log.Information($"Created new sup schedule with id '{_scheduleId}' to execute at '{TpPicker.SelectedDate}'"); } SetStatus(ScheduleStatus.Green); }