C# Класс PocketCampus.IsAcademia.Controls.DayDisplay.PeriodMatrix

Represents a matrix of periods possibly overlapping vertically.
Показать файл Открыть проект

Открытые методы

Метод Описание
GetColumn ( Period period ) : int

Gets the column in which the specified period should be put to avoid collisions.

GetWidthMultiplier ( Period period ) : double

Gets the width multiplier for the specified period. Always less than or equal to 1.

PeriodMatrix ( StudyDay day ) : System

Creates a new PeriodMatrix for the specified day's periods.

Приватные методы

Метод Описание
IterateOverIntervals ( Period period, int intervals, Action action ) : void

Iterates over the specified intervals for the specified period, executing the specified action that takes an index.

Описание методов

GetColumn() публичный Метод

Gets the column in which the specified period should be put to avoid collisions.
public GetColumn ( Period period ) : int
period PocketCampus.IsAcademia.Models.Period
Результат int

GetWidthMultiplier() публичный Метод

Gets the width multiplier for the specified period. Always less than or equal to 1.
public GetWidthMultiplier ( Period period ) : double
period PocketCampus.IsAcademia.Models.Period
Результат double

PeriodMatrix() публичный Метод

Creates a new PeriodMatrix for the specified day's periods.
public PeriodMatrix ( StudyDay day ) : System
day PocketCampus.IsAcademia.Models.StudyDay
Результат System