StandardReportWizard.cs 655 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Windows.Forms;
  5. using FastReport.Design;
  6. using FastReport.Forms;
  7. namespace FastReport.Wizards
  8. {
  9. /// <summary>
  10. /// Represents the "Standard Report" wizard.
  11. /// </summary>
  12. public class StandardReportWizard : WizardBase
  13. {
  14. /// <inheritdoc/>
  15. public override bool Run(Designer designer)
  16. {
  17. if (!designer.CreateEmptyReport())
  18. return false;
  19. using (StandardReportWizardForm form = new StandardReportWizardForm())
  20. {
  21. form.InitWizard(designer.ActiveReport);
  22. return form.ShowDialog() == DialogResult.OK;
  23. }
  24. }
  25. }
  26. }