| Quintiq file version 2.0 | 
| #parent: #root | 
| Method InitializeSubscribers () id:Method_LibCal_dlgEvent_InitializeSubscribers | 
| { | 
|   #keys: '[131094.0.1992121943]' | 
|   Body: | 
|   [* | 
|     participation        := dhLeadingParticipation.Data(); | 
|     calendar             := participation.Calendar(); | 
|     potentialSubscribers := calendar.GetPotentialSubscribers(); | 
|      | 
|     // Remove the calendar of the initiator (cannot subscribe to self). | 
|     initiator := dhEvent.Data().Calendar(); | 
|     if( potentialSubscribers.Find( initiator ) >= 0 ) | 
|     { | 
|       potentialSubscribers.Remove( initiator ); | 
|     } | 
|      | 
|     dhPotentialSubscribers.Data( &potentialSubscribers ); | 
|   *] | 
| } |