Quintiq file version 2.0
#parent: CheckBoxHasInputMaxDuration
Response OnUserChange () id:Response_DialogCreateEditCampaign_MP_CheckBoxHasInputMaxDuration_OnUserChange
{
  #keys: '[143600.0.1231619623]'
  Body:
  [*
    //Reset the default max duration value if it is unchecked
    data := Dialog.Data();
    maxdur := ifexpr( this.Checked(),
                      ifexpr( data.MaxDuration() > Duration::Zero(),
                              data.MaxDuration(),
                              data.CampaignType_MP().DefaultMaxDuration() ),
                      Duration::Zero() );
    GUIDurationSelectorMaxDuration.Duration( maxdur );
    Dialog.UpdateCheckboxState();
  *]
  CanBindMultiple: false
  DefinitionID: 'Responsedef_CheckBox_OnUserChange'
}
