Quintiq file version 2.0
#parent: #root
Method InitializeSubscribers () id:Method_LibCal_dlgEvent_InitializeSubscribers
{
  #keys: '[131094.0.1174411065]'
  Body:
  [*
    participation        := this.Data();
    calendar             := participation.Calendar();
    potentialSubscribers := calendar.GetPotentialSubscribers();
    
    // Remove the calendar of the initiator (cannot subscribe to self).
    initiator := dhLeadingParticipation.Data().Calendar();
    if( potentialSubscribers.Find( initiator ) >= 0 )
    {
      potentialSubscribers.Remove( initiator );
    }
    
    // Setting the checkmark for the actual subscribers in done in the dhAllCalendars.OnDataChanged.
    dhPotentialSubscribers.Data( &potentialSubscribers );
  *]
}
