Quintiq file version 2.0
#parent: #root
Method CheckContainsEvent (
  structured[Object] selection_i
) as Boolean id:Method_LibCal_dlgSubscribeToEvent_CheckContainsEvent
{
  #keys: '[146730.0.226427428]'
  Body:
  [*
    feedback  := FeedbackObject::LocalFeedback();
    isAllowed := exists( selection_i, Elements.astype( LibCal_LeadingParticipation ), element, true, true );
    
    if( not feedback.CheckHard( isAllowed ) )
    {
      feedback.AddHard( Translations::Event_SelectAtLeastOne() );
    }
    
    return isAllowed;
  *]
}
