public IScoreCardInfo(int numHoles) { holes = new IHoleDetailInfos(); IHoleDetailInfo h; for (int k = 0; k < numHoles; k++) { h = new IHoleDetailInfo(); h.TotalShots = 0; h.Hole = k + 1; h.Putts = 0; holes.Add(h); } mDate = DateTime.Now; }
// constructor. make the collection public mEnum(IHoleDetailInfos coll) { collection = coll; nIndex = -1; }
public IScoreCardInfo() { holes = new IHoleDetailInfos(); mDate = DateTime.Now; }