Quintiq file version 2.0 
 | 
#parent: ckbPeriodOfTime 
 | 
Response OnChange () id:Response_LibCal_dlgSubscription_ckbPeriodOfTime_OnChange 
 | 
{ 
 | 
  #keys: '[131094.1.401234411]' 
 | 
  Body: 
 | 
  [* 
 | 
    if( this.Checked() ) 
 | 
    { 
 | 
      // Uncheck the other checkbox. 
 | 
      ckbAllOccurrences.Checked( false ); 
 | 
     
 | 
      // Set the controls for the period of time.  
 | 
      participation := Dialog.GetParticipation(); 
 | 
     
 | 
      if( not participation.IsRecurring() ) 
 | 
      { 
 | 
        Dialog.DisablePeriodOfTime( Translations::Event_IsNotRecurring() ); 
 | 
      } 
 | 
      else 
 | 
      { 
 | 
        Dialog.EnablePeriodOfTime(); 
 | 
      }   
 | 
    } 
 | 
  *] 
 | 
  CanBindMultiple: false 
 | 
  DefinitionID: 'Responsedef_CheckBox_OnChange' 
 | 
} 
 |