示例#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)
 {
     if ((this._parent.TapChg == null))
     {
         IBSC tapChgCasted = item.As <IBSC>();
         if ((tapChgCasted != null))
         {
             this._parent.TapChg = tapChgCasted;
             return;
         }
     }
     if ((this._parent.RCol == null))
     {
         ISPC rColCasted = item.As <ISPC>();
         if ((rColCasted != null))
         {
             this._parent.RCol = rColCasted;
             return;
         }
     }
     if ((this._parent.LCol == null))
     {
         ISPC lColCasted = item.As <ISPC>();
         if ((lColCasted != null))
         {
             this._parent.LCol = lColCasted;
             return;
         }
     }
 }
示例#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.TapChg == null))
     {
         IBSC tapChgCasted = item.As <IBSC>();
         if ((tapChgCasted != null))
         {
             this._parent.TapChg = tapChgCasted;
             return;
         }
     }
     if ((this._parent.BlkEF == null))
     {
         ISPS blkEFCasted = item.As <ISPS>();
         if ((blkEFCasted != null))
         {
             this._parent.BlkEF = blkEFCasted;
             return;
         }
     }
     if ((this._parent.BlkAOv == null))
     {
         ISPS blkAOvCasted = item.As <ISPS>();
         if ((blkAOvCasted != null))
         {
             this._parent.BlkAOv = blkAOvCasted;
             return;
         }
     }
     if ((this._parent.BlkVOv == null))
     {
         ISPS blkVOvCasted = item.As <ISPS>();
         if ((blkVOvCasted != null))
         {
             this._parent.BlkVOv = blkVOvCasted;
             return;
         }
     }
     if ((this._parent.LimAOv == null))
     {
         IASG limAOvCasted = item.As <IASG>();
         if ((limAOvCasted != null))
         {
             this._parent.LimAOv = limAOvCasted;
             return;
         }
     }
     if ((this._parent.LimVOv == null))
     {
         IASG limVOvCasted = item.As <IASG>();
         if ((limVOvCasted != null))
         {
             this._parent.LimVOv = limVOvCasted;
             return;
         }
     }
 }
示例#3
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.TapChg == null))
     {
         IBSC tapChgCasted = item.As <IBSC>();
         if ((tapChgCasted != null))
         {
             this._parent.TapChg = tapChgCasted;
             return;
         }
     }
     if ((this._parent.VOvSt == null))
     {
         ISPS vOvStCasted = item.As <ISPS>();
         if ((vOvStCasted != null))
         {
             this._parent.VOvSt = vOvStCasted;
             return;
         }
     }
     if ((this._parent.NeutAlm == null))
     {
         ISPS neutAlmCasted = item.As <ISPS>();
         if ((neutAlmCasted != null))
         {
             this._parent.NeutAlm = neutAlmCasted;
             return;
         }
     }
     if ((this._parent.DschBlk == null))
     {
         ISPS dschBlkCasted = item.As <ISPS>();
         if ((dschBlkCasted != null))
         {
             this._parent.DschBlk = dschBlkCasted;
             return;
         }
     }
 }