public void DisplayEventsInCalendar(List <Event> events, DateTime selectedDate, Label[] labelArray, EventDisplay display)
        {
            foreach (Event ev in events)
            {
                CalendarEventDisplay calendarEvent = new CalendarEventDisplay(ev, selectedDate);

                if ((calendarEvent.DoesEventStartThisYear() && !calendarEvent.DoesEventEndThisYear()) ||
                    (!calendarEvent.DoesEventStartThisYear() && calendarEvent.DoesEventEndThisYear()))
                {
                    MultiYearEvent(ev, calendarEvent, selectedDate, labelArray, display);
                }
                else if (calendarEvent.DoesEventStartThisYear() && calendarEvent.DoesEventEndThisYear())
                {
                    SingleYearEvent(ev, calendarEvent, selectedDate, labelArray, display);
                }
            }
        }
 public void SingleYearEvent(Event ev, CalendarEventDisplay calendarEvent, DateTime selectedDate,
                             Label[] labelArray, EventDisplay display)
 {
     if (calendarEvent.DoesEventStartThisMonth() && calendarEvent.DoesEventEndThisMonth())
     {
         if (calendarEvent.DoesEventStartAndEndToday())
         {
             labelArray[ev.StartDate.Day - 1].Controls.Add(display.SetEventDisplay(ev));
         }
         else
         {
             for (int i = (ev.StartDate.Day - 1); i < (ev.EndDate.Day); i++)
             {
                 labelArray[i].Controls.Add(display.SetEventDisplay(ev));
             }
         }
     }
     else if (calendarEvent.DoesEventStartThisMonth() && !calendarEvent.DoesEventEndThisMonth())
     {
         for (int i = (ev.StartDate.Day - 1); i < labelArray.Length; i++)
         {
             labelArray[i].Controls.Add(display.SetEventDisplay(ev));
         }
     }
     else if (!calendarEvent.DoesEventStartThisMonth() && calendarEvent.DoesEventEndThisMonth())
     {
         for (int i = 0; i < (ev.EndDate.Day); i++)
         {
             labelArray[i].Controls.Add(display.SetEventDisplay(ev));
         }
     }
     else if (calendarEvent.DoesEventLastTheEntireMonth())
     {
         foreach (Label t in labelArray)
         {
             t.Controls.Add(display.SetEventDisplay(ev));
         }
     }
 }