Ok so i have got unavailable times working following the code found elsewhere in this form but for some reason it is not being specific to the Resource
01./// <param name="e">The <see cref="TimeSlotCreatedEventArgs"/> instance containing the event data.</param>02. protected void apertureAppointments_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)03. {04. foreach (DateTime dt in SpecialDays)05. 06. {07. if (DateTime.Compare(e.TimeSlot.Start.Date, dt) == 0)08. {09. //Set the CssClass property to visually distinguish your special days.10. e.TimeSlot.CssClass = "Disabled";11. }12. 13. 14. 15. 16. }17. 18. 19. List<Resource> resources = new List<Resource>(apertureAppointments.Resources.GetResourcesByType("Managers"));20. Resource res = resources[5];21. 22. DateTime dt1 = DateTime.Parse("2016/03/25 10:00");23. DateTime dt2 = DateTime.Parse("2016/03/25 16:00");24. if (res.Text == "Adam Adair")25. {26. if (DoDateRangesOverlap(e.TimeSlot.Start, e.TimeSlot.End, dt1, dt2))27. {28. e.TimeSlot.CssClass = "UnavailableCssStyle";29. }30. }31. }
This is the last element of a long running project and if can get this working they will be very please is their anyway to add a icon to represent a holiday?.