Пример #1
0
 public void AddCell(TimetableCell cell)
 {
     //create a new List of there is none
     if (TimetableCells == null)
     {
         TimetableCells = new List <TimetableCell>();
     }
     TimetableCells.Add(cell);
 }
Пример #2
0
        /// <summary>
        /// Check if the timetable is conflicting
        /// </summary>
        /// <returns><c>true</c>, if the row and the column is the same, <c>false</c> otherwise.</returns>
        /// <param name="other">Other.</param>
        public bool HasConflict(TimetableCell other)
        {
            if (other is null)
            {
                return(false);
            }

            return(Row == other.Row && Column == other.Column);
        }