public CowInfo(Cow cow) { myCow = cow; this.earNum = cow.EarNum; this.calvingList = CowInfo.GetCowCalvingRecords(this.earNum); this.dryMilkList = CowInfo.GetDryMilkRecords(this.earNum); this.parity = this.calvingList.Count; }
public CowInfo(int earNum) { CowBLL cb = new CowBLL(); this.earNum = earNum; myCow = cb.GetCowInfo(earNum); this.calvingList = CowInfo.GetCowCalvingRecords(earNum); this.dryMilkList = CowInfo.GetDryMilkRecords(earNum); this.parity = this.calvingList.Count; }