Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method EditEventOrSubscription ( 
 | 
  internal[GUIComponent] parent_i, 
 | 
  LibCal_Participation participation_i 
 | 
) id:Method_LibCal_GlobalState_EditEventOrSubscription 
 | 
{ 
 | 
  #keys: '[131094.1.567622268]' 
 | 
  Body: 
 | 
  [* 
 | 
    // For a non-leading participation only the subscription can be edited.   
 | 
    if( participation_i.IsLeading() ) 
 | 
    { 
 | 
      dlg := construct( LibCal_dlgEvent ); 
 | 
      dlg.EditEvent( parent_i, participation_i.astype( LibCal_LeadingParticipation ) ); 
 | 
    } 
 | 
    else 
 | 
    { 
 | 
      dlg := construct( LibCal_dlgSubscription ); 
 | 
      dlg.EditSubscription( this, participation_i.astype( LibCal_Subscription ) ); 
 | 
    } 
 | 
  *] 
 | 
} 
 |