Quintiq file version 2.0
#parent: #root
Method Open (
  internal[GUIComponent] parent_i,
  LibCal_Calendar calendar_i,
  Boolean isSingleCalendar_i
) id:Method_LibCal_dlgCalendarSettings_Open
{
  #keys: '[131094.0.1829945276]'
  Body:
  [*
    if( not isnull( calendar_i ) )
    {
      // Set the data and open the Dialog.
      dpCalendarSettings.Data( calendar_i );
      dpCalendarSettings.InitializeBase();
      
      if( isSingleCalendar_i )
      {
        this.Title( "Settings of calendar " + calendar_i.CalendarID() );
        dhCalendars.Data().Add( calendar_i );
      }
    
      this.DoModal( parent_i );
    }
  *]
}
