Quintiq file version 2.0
#parent: ButtonOptimizerPuzzleReset
Response OnClick () id:Response_DialogResetPlan_ButtonOptimizerPuzzleReset_OnClick
{
  #keys: '[146140.1.518606008]'
  Body:
  [*
    // Edit a OptimizerPuzzle
    editdlg := construct( DialogCreateEditOptimizerPuzzle );
    opti := editdlg.EditFromOptimizerAndReset( this, SelectionOptimizerPuzzleReset.Data() );
    
    // Set the dropdown list with the optimizer returned
    SelectionOptimizerPuzzleReset.Data( opti );
  *]
  CanBindMultiple: false
  DefinitionID: 'Responsedef_GUIButtonBase_OnClick'
  Precondition:
  [*
    return not isnull( SelectionOptimizerPuzzleReset.Data() );
  *]
}
