Quintiq file version 2.0
#parent: #root
Method ShowInfo (
  LibCal_Calendar leadingCalendar_i,
  structured[LibCal_Calendar] calendars_i
) id:Method_LibCal_dlgCalendarSettingsConfirmation_ShowInfo
{
  #keys: '[146730.0.1423911733]'
  Body:
  [*
    // Show information about the divergent calendars as the tooltip of imgInfo.
    calendarIDs         := selectvalues( calendars_i, Elements, calendar, true, calendar.CalendarID() ).Sort();
    calendarIDsAsString := "";
    
    traverse( calendarIDs, Elements, id )
    {
      calendarIDsAsString := "<br/>" + calendarIDsAsString + "  * " + id;
    }
    
    if( leadingCalendar_i.istype( LibCal_CommonCalendar ) )
    {
      imgInfoCommonCalendar.Tooltip( Translations::Calendar_DivergentSettings( calendarIDsAsString ) );
      pnlMessageOtherCalendarLeading.Visible( false );
    }
    else
    {
      imgInfoOtherCalendarLeading.Tooltip( Translations::Calendar_DivergentSettings( calendarIDsAsString ) );
      pnlMessageCommonCalendar.Visible( false );
    }
  *]
}
