Beispiel #1
0
        private static void DebugReport(TimeSlot[] ts, string item, Cal c)
        {
            string stud = item + "\t";
            foreach (var tst in ts)
            {
                bool free = c.IsFreeOn(tst);
                bool bPossible = free;

                if (bPossible)
                {
                    if (c.IsDayFree(tst.dayOfWeek))
                        bPossible = false;
                }

                if (bPossible)
                {
                    int aft = c.ContinuousStretchAfter(tst);
                    int bef = c.ContinuousStretchBefore(tst);
                    int totSlot = aft + 2 + bef;
                    if (totSlot > 4)
                        bPossible = false;
                }

                if (bPossible)
                    stud += "True\t";
                else
                    stud += "\t";
            }
            Debug.WriteLine(stud);
        }