Esempio n. 1
0
        public void SportsCareer()
        {
            int Age = this.People.age;

            for (int i = Age; i <= 35; i++)
            {
                if (Age >= 35)
                {
                    EndOfCareer?.Invoke(this, new EventArgs());
                }
                ++Age;
            }
        }
Esempio n. 2
0
        public void Training()
        {
            int ageStudent = this.participant.Age;

            for (int i = ageStudent; i <= 35; i++)
            {
                if (ageStudent >= 35)
                {
                    EndOfCareer?.Invoke(this, new EventArgs());
                }
                ++ageStudent;
            }
        }