public bool ScheduleLessonLabToPractitionerInCourse(Practitioner prac, Course c, Lesson les) { if (SettingDatabase.PractitionerHasMoreThenAllowsHours(prac, les)) { MessageBox.Show("Can't register any more lessons to this Practitioner, because he above more then 16 weekly hours teaching"); return(false); } return(SettingDatabase.AddLabInCourseToPractitioner(prac, c, les)); }