Esempio n. 1
0
 public ClassRecord ToNoneSerializable(ScheduleAndDicts scheduleAndDicts)
 {
     return(new ClassRecord
     {
         Classroom = Classroom == null ? null : scheduleAndDicts.Classrooms[Classroom.ID],
         Lecturer = Lecturer == null ? null : scheduleAndDicts.Lecturers[Lecturer.ID],
         Subject = Subject == null ? null : scheduleAndDicts.Subjects[Subject.ID]
     });
 }
Esempio n. 2
0
 public Group ToNonSerializable(ScheduleAndDicts scheduleAndDicts)
 {
     return(new Group
     {
         Name = Name,
         Specialization = scheduleAndDicts.Specializations[Specialization.ID],
         YearOfStudy = scheduleAndDicts.YearsOfStudy[YearOfStudy.ID]
     });
 }
Esempio n. 3
0
        public ClassesTable ToNonSerializable(ScheduleAndDicts scheduleAndDicts)
        {
            var yearOfStudy = scheduleAndDicts.YearsOfStudy[YearOfStudy.ID];
            var table       = new ClassesTable(scheduleAndDicts.Schedule, yearOfStudy);

            for (int i = 0; i < Table.Length; ++i)
            {
                for (int j = 0; j < Table[i].Length; ++j)
                {
                    if (Table[i][j] != null)
                    {
                        table.Table[i][j] = Table[i][j].ToNoneSerializable(scheduleAndDicts);
                    }
                }
            }

            return(table);
        }