| Quintiq file version 2.0 | 
| #parent: #root | 
| Method InitializeNonRecurring () id:Method_LibCal_dlgSubscription_InitializeNonRecurring | 
| { | 
|   #keys: '[131094.1.120471019]' | 
|   Body: | 
|   [* | 
|     participation := dhParticipationToSubscribeTo.Data(); | 
|     event         := participation.Event(); | 
|      | 
|     dsStartOfPeriod.Date( participation.StartDate() ); | 
|     durStartTimeOfDay.Duration( event.StartTimeOfDay() ); | 
|      | 
|     ckbEndOfPeriod.Checked( true ); | 
|      | 
|     dsEndOfPeriod.Date( participation.EndDate() ); | 
|     durEndTimeOfDay.Duration( event.EndTimeOfDay() ); | 
|      | 
|     // Disable the controls. | 
|     feedback := ifexpr( dhParticipationsToSubscribeTo.Data().Size() > 1, Translations::Event_NoneAreRecurring(), | 
|                                                                          Translations::Event_IsNotRecurring() ); | 
|     ckbPeriodOfTime.Enabled( false, feedback ); | 
|     this.DisablePeriodOfTime( feedback ); | 
|   *] | 
| } |