//---------------------------------------------------------------------

        void AgeCohort.ISiteCohorts.DamageBy(AgeCohort.ICohortDisturbance disturbance)
        {
            if (AgeOnlyDisturbanceEvent != null)
            {
                AgeOnlyDisturbanceEvent(this, new DisturbanceEventArgs(disturbance.CurrentSite,
                                                                       disturbance.Type));
            }
            DamageBy(new WrappedDisturbance(disturbance));
        }
Example #2
0
        //---------------------------------------------------------------------

        public WrappedDisturbance(AgeCohort.ICohortDisturbance ageCohortDisturbance)
        {
            this.ageCohortDisturbance = ageCohortDisturbance;
        }
        //---------------------------------------------------------------------

        public WrappedDisturbance(AgeCohort.ICohortDisturbance ageCohortDisturbance)
        {
            this.ageCohortDisturbance = ageCohortDisturbance;
        }