Quintiq file version 2.0
#parent: #root
Method EnableDisableMaxDuration (
  Boolean toggle
) as Boolean id:Method_DialogCreateEditCampaign_EnableDisableMaxDuration
{
  #keys: '[150660.2.851898591]'
  Body:
  [*
    // Enable disable duration selector
    DurationSelectorMaxDuration.Enabled( toggle, ifexpr( toggle, '', 'Press enable to input value.' ) );
    DurationSelectorMaxDuration.Duration( ifexpr( toggle,
                                                  DataHolderDialogData.Data().MaxDuration(),
                                                  Duration::Zero() ) );
    this.ChangeActionLink( DurationSelectorMaxDuration );
    return toggle;
  *]
}
