/// <summary> /// Gets Id Of Timetable /// </summary> /// <returns>absolute id of timetable</returns> public static int GetIdOfTimetable(Timetable t, SchoolTimetable st) { return(t == null ? -1 : t.type == Lesson.LessonType.Teacher ? st.TimetablesOfClasses.Count + st.TimetableOfTeachers.IndexOf(t) : st.TimetablesOfClasses.IndexOf(t)); }