OnClickEventArgs.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. namespace FastReport.Web.Blazor.Export
  5. {
  6. public sealed class OnClickEventArgs : EventArgs
  7. {
  8. public ReportComponentBase Object { get; }
  9. public ClickType Type { get; }
  10. public int PageNumber { get; }
  11. public Report Report { get; }
  12. public OnClickEventArgs(ReportComponentBase Object, ClickType type)
  13. {
  14. this.Object = Object;
  15. this.Type = type;
  16. this.Report = Object.Report;
  17. }
  18. public OnClickEventArgs(ReportComponentBase Object, ClickType type, int pageNumber)
  19. : this(Object, type)
  20. {
  21. this.PageNumber = pageNumber;
  22. }
  23. }
  24. public enum ClickType
  25. {
  26. /// <summary>
  27. /// Default value of <see cref="ClickType"/>.
  28. /// </summary>
  29. Empty = 0,
  30. Click,
  31. CheckboxClick,
  32. TextEdit,
  33. DetailedReport,
  34. DetailedPage,
  35. Bookmark,
  36. PageNumber,
  37. AdvancedMatrixClick
  38. }
  39. }