Quintiq file version 2.0
#parent: #root
Method EventsOfOneCalendarSelected (
  structured[LibCal_Participation] participations_i
) as Boolean id:Method_LibCal_swEventsAndOccurrences_EventsOfOneCalendarSelected
{
  #keys: '[131094.1.605785848]'
  Body:
  [*
    feedback    := FeedbackObject::LocalFeedback();
    calendars   := selectset( participations_i, Elements.Calendar, calendar, true, true ).Unique();
    oneSelected := calendars.Size() = 1;
     
    if( not feedback.CheckHard( oneSelected ) )
    {
      feedback.AddHard( Translations::Event_MoreThanOneCalendar() );
    }
    
    return oneSelected;
  *]
}
