Ejemplo n.º 1
0
        /// <summary>
        /// Check if the absence selected falls at the end of the absence list
        /// </summary>
        /// <param name="employee">Employee (object) selected</param>
        /// <param name="firstDay">first day selected in the DateTimePicker</param>
        /// <returns>boolean (true if the absence falls at the end of all previous absence, false if not)</returns>
        public bool AbsenceAtTheEndOfTheCalendar(Employee employee, DateTime firstDay)
        {
            DateTime maxDay = AccessDataBase.AbsenceAtTheEndOfTheCalendar(employee);

            return(firstDay > maxDay);
        }