Quintiq file version 2.0
#parent: ListScenario
Response OnClick (
  structured[ScenarioMP] selection
) id:Response_ListScenario_MenuRunBenchmarking_OnClick
{
  #keys: '[110880.5.1300785349]'
  Body:
  [*
    // Run benchmarking for selected scenarios
    dlg := construct( LibOBT_dlgEditBenchmarkerParameter );
    result := dlg.EditBenchmarkerParameter( this, ScenarioManager.LibOBT_Benchmarker().LibOBT_BenchmarkerParameter() );
    
    if( result > 0 )
    {
      ScenarioManager.LibOBT_Benchmarker().LibOBT_BenchmarkerParameter().SetBenchmarkingRun( true );
      ScenarioManager.LibOBT_Benchmarker().RunBenchmarking( selection, 0, ScenarioManager.GetNrOfTestInstanceRow() -1 );
    }
  *]
  CanBindMultiple: false
  DefinitionID => /ListScenario/Responsedef_ListScenario_Menu_OnClick
  Initiator: 'MenuRunBenchmarking'
  Precondition:
  [*
    return LibOBT_Benchmarker::CanRunBenchmarking( ScenarioManager.LibOBT_Benchmarker(), selection, feedback );
  *]
  UserRequiresReadWrite: true
}
