| Quintiq file version 2.0 | 
| #parent: #root | 
| Method InitializeNonRecurring () id:Method_LibCal_dlgSubscription_InitializeNonRecurring | 
| { | 
|   #keys: '[131094.1.121569803]' | 
|   Body: | 
|   [* | 
|     participation := this.GetParticipation(); | 
|     event         := participation.Event(); | 
|      | 
|     // Show the dates of the participation to which is subscribed. | 
|     datStartOfPeriod.Date( participation.StartDate() ); | 
|     durStartTimeOfDay.Duration( event.StartTimeOfDay() ); | 
|      | 
|     ckbEndOfPeriod.Checked( true ); | 
|      | 
|     datEndOfPeriod.Date( participation.EndDate() ); | 
|     durEndTimeOfDay.Duration( event.EndTimeOfDay() ); | 
|      | 
|     // Disable the controls. | 
|     feedback := ifexpr( dhParticipationsToSubscribeTo.Data().Size() > 1, Translations::Event_NoneAreRecurring(), | 
|                                                                          Translations::Event_IsNotRecurring() ); | 
|     ckbPeriodOfTime.DisableWithUserFeedback( feedback ); | 
|     this.DisablePeriodOfTime( feedback ); | 
|   *] | 
| } |