protected void ProcessStock(int numOfDays) { SheepBO sheep = new SheepBO(); for (int cnt = 0; cnt < numOfDays; cnt++) { foreach (SheepBO a in this.Herd.Herd) { a.ProcessDay(cnt); if (a.IsLive) { this.MilkStock += a.DailyMilkProd; } if (a.TodaysWool) { this.SkinStock++; } } } }
protected void ProcessStock(int numOfDays) { SheepBO sheep = new SheepBO(); for (int cnt = 0; cnt < numOfDays; cnt++) { foreach (SheepBO a in this.Herd.Herd) { a.ProcessDay(cnt); if(a.IsLive) this.MilkStock += a.DailyMilkProd; if (a.TodaysWool) this.SkinStock++; } } }