Quintiq file version 2.0
#parent: Toolbar/btnOk
Response OnClick () id:Response_Toolbar_btnOk_OnClick
{
  #keys: '[11660.0.354466973]'
  Body:
  [*
    // Apply changes
    
    Dialog.ApplyChanges();
    Dialog.SetAttributesAfterOnApplyData();
    Dialog.EndModal(1);
  *]
  DefinitionID: 'Responsedef_GUIButtonBase_OnClick'
  Precondition:
  [*
    return Account::ValidateInput( feedback,
                                   ScenarioManager,
                                   CheckBoxHasParentAccount.Checked(),
                                   SelectionParent.Data(),
                                   EditorName.Text(),
                                   ApplicationLibMacroPlanner.FormatStringToReal( EditorBudget.Text() ),
                                   StringSelectionDefaultCostDriver.BoundValue(),
                                   StringSelectionDefaultTimeUnit.BoundValue(),
                                   ApplicationLibMacroPlanner.FormatStringToNumber( EditorDefaultLengthOfTime.Text() ),
                                   ApplicationLibMacroPlanner.FormatStringToReal( EditorDefaultCost.Text() ),
                                   Dialog.Data().WrappedInstance() );
  *]
}
