Quintiq file version 2.0
#parent: #root
Method EnableDisableMaxDuration (
  Boolean isenable
) id:Method_DialogCreateEditTransitionType_EnableDisableMaxDuration
{
  #keys: '[146140.2.77829976]'
  Body:
  [*
    // Reset the default max duration value if it is unchecked
    DurationSelectorMaxDuration.Duration( ifexpr( isenable,
                                                  DataHolderDialogData.Data().DefaultMaxDuration(),
                                                  Duration::Zero() ) );
    DurationSelectorMaxDuration.Enabled( isenable, '' );
    this.ChangeActionLinkText( DurationSelectorMaxDuration );
  *]
}
