Quintiq file version 2.0
#parent: ToolbarAction/btnOk
Response OnClick () id:Response_ToolbarAction_btnOk_OnClick
{
  #keys: '[146140.0.1626331173]'
  Body:
  [*
    // User click on OK button
    // Will create or edit or copy Optimizer Puzzle
    Dialog.ApplyChanges();          
    Dialog.EndModal(1);
  *]
  DefinitionID: 'Responsedef_GUIButtonBase_OnClick'
  Precondition:
  [*
    // Check if the OptimizerPuzzle is unique
    
    optimizerpuzzlewip := Dialog.Data();
    
    return OptimizerPuzzle::ValidateInput( feedback,
                                           MacroPlan,
                                           optimizerpuzzlewip,
                                           Dialog.GetOptimizerPuzzleName() );
  *]
}
