Esempio n. 1
0
        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++;
                    }
                }
            }
        }
Esempio n. 2
0
 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++;
         }
     }
 }