Quintiq file version 2.0
#parent: ListRunTask
Response OnClick (
  structured[LibOBT_RunTask] selection
) id:Response_ListRunTask_MenuDelete_OnClick
{
  #keys: '[107934.0.288896899]'
  Body:
  [*
    // Delete run tasks
    
    warning := LibOBT_Benchmarker::GetWarningMessageForRunTaskDeletion( selection );
    delete := true;
    
    if( warning <> '' )
    {
      delete := MessageBox::Question( this, warning, '&Yes|&No' ) = 0;
    }
    
    if( delete )
    {
      LibOBT_RunTask::Delete( selection );
    }
  *]
  CanBindMultiple: false
  DefinitionID => /ListRunTask/Responsedef_ListRunTask_Menu_OnClick
  Initiator: 'MenuDelete'
}
