Quintiq file version 2.0
#parent: #root
Method EnableDisableComponents (
  OptimizerPuzzle optimizerpuzzle
) id:Method_DialogCreateEditOptimizerPuzzle_EnableDisableComponents
{
  #keys: '[146140.1.652307163]'
  Body:
  [*
    // If the puzzle selected is World, disable edit
    
    isWorldSelected := optimizerpuzzle.IsWorld();
    
    Form.EditFieldName().Enabled( not isWorldSelected, '' );
    Form.EditFieldDescription().Enabled( not isWorldSelected, '' );
  *]
}
