Quintiq file version 2.0
#parent: #root
Method ShowHideComponents (
  Boolean showddlpuzzle
) id:Method_DialogCreateEditOptimizerPuzzle_ShowHideComponents
{
  #keys: '[146140.0.1815026045]'
  Body:
  [*
    // Hide / Show components
    // Optimizer puzzle dropdown only shown if opening from optimizer dialog
    // Optimizer puzzle editor only shown if opening from optimizer puzzle list
    
    this.LabelSelectionOptimizerPuzzle().Visible( showddlpuzzle );
    this.SelectionOptimizerPuzzle().Visible( showddlpuzzle );
    this.ButtonCopyOptimizerPuzzle().Visible( showddlpuzzle );
    
    this.LabelName().Visible( not showddlpuzzle );
    this.EditorName().Visible( not showddlpuzzle );
  *]
}
