//הוספת חופש
        public static void holiday(DateTime dateStart, DateTime dateEnd)
        {
            int l;

            for (DateTime i = dateStart; i < dateEnd; i = i.AddDays(1))
            {
                switch (i.DayOfWeek)
                {
                case (DayOfWeek.Sunday): { l = 1; break; }

                case (DayOfWeek.Monday): { l = 2; break; }

                case (DayOfWeek.Tuesday): { l = 3; break; }

                case (DayOfWeek.Wednesday): { l = 4; break; }

                case (DayOfWeek.Thursday): { l = 5; break; }

                default /*(DayOfWeek.Friday)*/: { l = 6; break; }
                }
                Presence.AddHoliday(l, i);
            }
        }