Quintiq file version 2.0
#parent: #root
Method InitializeRecurrence (
  Date startDate_i
) id:Method_LibCal_dlgEvent_InitializeRecurrence
{
  #keys: '[131094.0.1357886109]'
  Body:
  [*
    // Initialize the recurrence pattern and period.
    // Assumption: dhEvent.Data() and Dialog.Data() have already been set.
    sEvent    := Dialog.Data();
    sLeadPart := dhLeadingParticipation.Data();
    
    sPattern := sEvent.RecurrencePattern();
    sPeriod  := sLeadPart.RecurrencePeriod();
    
    this.InitializeRecurrencePattern( sPattern, startDate_i );
    this.InitializeRecurrencePeriod(   sPeriod, startDate_i );
    
    isRecurring := sLeadPart.IsRecurring();
    this.SetRecurrence( isRecurring );
  *]
}
