ScheduleOffsetList.cs 750 B

1234567891011121314151617181920212223242526272829
  1. using Comal.Classes;
  2. using InABox.Core;
  3. using InABox.DynamicGrid;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Reflection;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace PRS.Shared
  10. {
  11. public class ScheduleOffsetListGrid : DynamicEnclosedListGrid<Schedule, ScheduleOffset>
  12. {
  13. public ScheduleOffsetListGrid(PropertyInfo prop) : base(prop)
  14. {
  15. }
  16. protected override void DoReconfigure(DynamicGridOptions options)
  17. {
  18. base.DoReconfigure(options);
  19. if (Security.CanEdit<Schedule>())
  20. {
  21. options.AddRows = true;
  22. options.EditRows = true;
  23. options.DeleteRows = true;
  24. }
  25. }
  26. }
  27. }