Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method Edit ( 
 | 
  OptimizerPuzzle optimizerpuzzle 
 | 
) id:Method_DialogCreateEditOptimizerPuzzle_Edit 
 | 
{ 
 | 
  #keys: '[146140.1.652306958]' 
 | 
  Body: 
 | 
  [* 
 | 
    // Edit an OptimizerPuzzle, triggered from FormOptimizerPuzzle 
 | 
     
 | 
    // Enable Disable components if World puzzle selected 
 | 
    Form.EnableDisableComponents( optimizerpuzzle ); 
 | 
     
 | 
    wip := optimizerpuzzle.Edit( MacroPlan, QuintiqUser::CurrentUser().Name() ); 
 | 
     
 | 
    // Store this WIP in Dialog.Data 
 | 
    DataHolderOptimizerPuzzleWIP.Data( wip ); 
 | 
     
 | 
    // Display dialog as non modal 
 | 
    ApplicationMacroPlanner.ShowFormModal( this ); 
 | 
  *] 
 | 
} 
 |