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