Ejemplo n.º 1
0
            /// <summary>
            /// Adds the given element to the collection
            /// </summary>
            /// <param name="item">The item to add</param>
            public override void Add(IModelElement item)
            {
                IForkedBehaviour asynchronousForkedBehaviours_ForkActionCasted = item.As <IForkedBehaviour>();

                if ((asynchronousForkedBehaviours_ForkActionCasted != null))
                {
                    this._parent.AsynchronousForkedBehaviours_ForkAction.Add(asynchronousForkedBehaviours_ForkActionCasted);
                }
                if ((this._parent.SynchronisingBehaviours_ForkAction == null))
                {
                    ISynchronisationPoint synchronisingBehaviours_ForkActionCasted = item.As <ISynchronisationPoint>();
                    if ((synchronisingBehaviours_ForkActionCasted != null))
                    {
                        this._parent.SynchronisingBehaviours_ForkAction = synchronisingBehaviours_ForkActionCasted;
                        return;
                    }
                }
            }
Ejemplo n.º 2
0
 /// <summary>
 /// Adds the given element to the collection
 /// </summary>
 /// <param name="item">The item to add</param>
 public override void Add(IModelElement item)
 {
     if ((this._parent.SynchronisationPoint_ForkedBehaviour == null))
     {
         ISynchronisationPoint synchronisationPoint_ForkedBehaviourCasted = item.As <ISynchronisationPoint>();
         if ((synchronisationPoint_ForkedBehaviourCasted != null))
         {
             this._parent.SynchronisationPoint_ForkedBehaviour = synchronisationPoint_ForkedBehaviourCasted;
             return;
         }
     }
     if ((this._parent.ForkAction_ForkedBehaivour == null))
     {
         IForkAction forkAction_ForkedBehaivourCasted = item.As <IForkAction>();
         if ((forkAction_ForkedBehaivourCasted != null))
         {
             this._parent.ForkAction_ForkedBehaivour = forkAction_ForkedBehaivourCasted;
             return;
         }
     }
 }