Quintiq file version 2.0
#parent: #root
Method OneCalendarSelected (
  structured[LibCal_Calendar] calendars_i
) as Boolean id:Method_LibCal_frmResourceCalendars_OneCalendarSelected
{
  #keys: '[131094.1.544303524]'
  Body:
  [*
    feedback  := FeedbackObject::LocalFeedback();
    isAllowed := calendars_i.Size() = 1;
    
    if( not feedback.CheckHard( isAllowed ) )
    {
      feedback.AddHard( Translations::Calendar_MoreThanOneSelected() );
    }
    
    return isAllowed;
  *]
}
