private void InitLectureCards() { ClassesRowsCount = _classesTable.RowsCount(); ClassesColumnsCount = _classesTable.ColumnsCount(); ClassesCards = new ClassCardViewMode[ClassesRowsCount][]; for (var row = 0; row < ClassesRowsCount; row++) { ClassesCards[row] = new ClassCardViewMode[ClassesColumnsCount]; for (var col = 0; col < ClassesColumnsCount; col++) { ClassesCards[row][col] = CreateClassCard(row, col); } } }