Ejemplo n.º 1
0
        /// <summary>
        /// Retrieves a collection of post election audit events for display in a calendar.
        /// </summary>
        /// <returns>A collection of post election audit events for display in a calendar.</returns>
        public IEnumerable <CPCalendarItem> GetCalendarEvents()
        {
            List <CPCalendarItem> items    = new List <CPCalendarItem>();
            ResponseDeadlineBase  deadline = this.ResponseDeadline;

            if (deadline != null)
            {
                items.Add(deadline);
            }
            InadequateEventBase inadequate = this.InadequateNotice;

            if (inadequate != null)
            {
                items.AddRange(inadequate.GetCalendarEvents());
            }
            return(items);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Retrieves a collection of post election audit events for display in a calendar.
        /// </summary>
        /// <returns>A collection of post election audit events for display in a calendar.</returns>
        public IEnumerable <CPCalendarItem> GetCalendarEvents()
        {
            List <CPCalendarItem> items = new List <CPCalendarItem>();

            foreach (var evt in this)
            {
                InadequateEventBase inadequate = evt as InadequateEventBase;
                if (inadequate != null)
                {
                    items.Add(inadequate);
                    ResponseDeadlineBase deadline = inadequate.ResponseDeadline;
                    if (deadline != null)
                    {
                        items.Add(deadline);
                    }
                }
            }
            return(items);
        }