예제 #1
0
파일: Program.cs 프로젝트: Bylka-ops/OOP8.1
        public void SportsCareer()
        {
            int Age = this.People.age;

            for (int i = Age; i <= 35; i++)
            {
                if (Age >= 35)
                {
                    EndOfCareer?.Invoke(this, new EventArgs());
                }
                ++Age;
            }
        }
예제 #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;
            }
        }