ChildBand.DesignExt.cs 670 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections;
  3. using System.Windows.Forms;
  4. using System.Drawing;
  5. using System.ComponentModel;
  6. using FastReport.Utils;
  7. namespace FastReport
  8. {
  9. partial class ChildBand
  10. {
  11. /// <inheritdoc/>
  12. public override ContextMenuBase GetContextMenu()
  13. {
  14. return new ChildBandMenu(Report.Designer);
  15. }
  16. /// <inheritdoc/>
  17. public override void Delete()
  18. {
  19. if (!CanDelete)
  20. return;
  21. // remove only this band, keep its subbands
  22. if (Parent is BandBase)
  23. (Parent as BandBase).Child = Child;
  24. Dispose();
  25. }
  26. }
  27. }