Beispiel #1
0
 /// <summary>
 /// 添加婴儿组.
 /// </summary>
 /// <param name="infant">The infant.</param>
 public void addInfant(BookInfant infant)
 {
     infant.getcarrierName = this.__adultList.Contains(infant.getcarrierName)?string.Format(@"P{0}", this.__adultList.IndexOf(infant.getcarrierName) + 1):infant.getcarrierName;
     this.__infantList.Add(infant);
 }
Beispiel #2
0
 /// <summary>
 /// 添加婴儿组.
 /// </summary>
 /// <param name="infant">The infant.</param>
 public void addInfant(BookInfant infant)
 {
     infant.getcarrierName=this.__adultList.Contains(infant.getcarrierName)?string.Format(@"P{0}",this.__adultList.IndexOf(infant.getcarrierName)+1):infant.getcarrierName;
     this.__infantList.Add(infant);
 }