Quintiq file version 2.0
#parent: Toolbar/btnOk
Response OnClick () id:Response_Toolbar_btnOk_OnClick
{
  #keys: '[110880.4.841969291]'
  Body:
  [*
    // Apply changes
    Dialog.ApplyChanges();
    Dialog.EndModal(1);
  *]
  CanBindMultiple: false
  DefinitionID: 'Responsedef_GUIButtonBase_OnClick'
  Precondition:
  [*
    sanitycheckfeedback := '';
    return CampaignType_MP::ValidateInput( feedback,
                                           sanitycheckfeedback,
                                           SelectionUnit.Data(),
                                           EditorName.Text(),
                                           ApplicationLibMacroPlanner.FormatStringToReal( EditorDefaultMinQuantity.Text() ),
                                           ApplicationLibMacroPlanner.FormatStringToReal( EditorDefaultMaxQuantity.Text() ),
                                           GUIDurationSelectorMinDuration.Duration(),
                                           GUIDurationSelectorMaxDuration.Duration(),
                                           Dialog.Data().WrappedInstance(),
                                           true,
                                           RadioButtonGroupQuantityDuration.BoundValue().TrimBoth(),
                                           CheckBoxDefaultMaxQuantity.Checked(),
                                           CheckBoxDefaultMaxDuration.Checked()
                                         );
  *]
  UserRequiresReadWrite: true
}
