Exemple #1
0
        public void GetLocationInRooms(Lesson l,
            out int col, out int row1, out int row2, out Color color)
        {
            color = Color.Gray;
            l.GetLocationInWeek(out col, out row1, out row2);
            int i = 0;
            col = -1;
            foreach (Room r in roomList)
            {
                if (r.Name == l.Room)
                {
                    col = i;
                    color = LessonStateBackColor(l.State);
                }
                i++;
            }

            if (col == -1)
                col = roomList.Count - 1;
        }