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