| Quintiq file version 2.0 | 
| #parent: #root | 
| Method AddCombiElement ( | 
|   OptCampaignElementType type, | 
|   OptCampaignUnitSubPeriod ocusp | 
| ) | 
| { | 
|   TextBody: | 
|   [* | 
|     if ( type.istype( OptCampaignCampaignType ) )  | 
|     { | 
|       ctype := type.astype( OptCampaignCampaignType ).CampaignType_MP();  | 
|       this.AddCombiElementCampaign( ctype, ocusp );  | 
|     } | 
|     else | 
|     { | 
|       ttype := type.astype( OptCampaignTransitionType ).TransitionType_MP();  | 
|       this.AddCombiElementTransition( ttype, ocusp );                      | 
|     } | 
|   *] | 
|   InterfaceProperties { Accessibility: 'Module' } | 
| } |