Ejemplo n.º 1
0
        private void CopyTable(ClassesTable table, sClassesSchedule schedule)
        {
            var oldTable = table.Table;

            Table = new sClassRecord[oldTable.Length][];
            for (int i = 0; i < oldTable.Length; ++i)
            {
                Table[i] = new sClassRecord[oldTable[i].Length];
                for (int j = 0; j < oldTable[i].Length; ++j)
                {
                    if (oldTable[i][j] != null)
                    {
                        Table[i][j] = new sClassRecord(oldTable[i][j], schedule);
                    }
                }
            }
        }
Ejemplo n.º 2
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);
        }
Ejemplo n.º 3
0
 private void CopyYearOfStudy(ClassesTable table, sClassesSchedule schedule)
 {
     YearOfStudy = schedule.YearsOfStudy[table.YearOfStudy.GetHashCode()];
 }
Ejemplo n.º 4
0
 public sClassesTable(ClassesTable table, sClassesSchedule schedule) : base(table.YearOfStudy)
 {
     CopyYearOfStudy(table, schedule);
     CopyTable(table, schedule);
 }