Quintiq file version 2.0
#parent: pnlNotRecurring/datStartDate
Response OnChanged () id:Response_pnlNotRecurring_datStartDate_OnChanged
{
  #keys: '[146730.0.907574506]'
  Body:
  [*
    // Adjust the EndDate accordingly.
    if( vhStartDate.Data().IsFinite() )
    {
      delta := this.Date() - vhStartDate.Data();
      datEndDate.Date( datEndDate.Date() + delta );
    }
     
    // Update the 'memory' for later delta-calculation, and/or setting the time back when AllDay is turned off.
    vhStartDate.Data( this.Date() );
    
    // Adjust StartOfPeriod accordingly for convenience.
    // EndOfPeriod is then also automatically adjusted.
    if( btnNoRecurrence.Pressed() )
    {
      datStartOfPeriod.Date();
    }
  *]
  CanBindMultiple: false
  DefinitionID: 'Responsedef_GUIDateSelector_OnChanged'
}
