NewDialogWizard.cs 463 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using FastReport.Design;
  5. namespace FastReport.Wizards
  6. {
  7. /// <summary>
  8. /// Represents the "New Dialog" wizard.
  9. /// </summary>
  10. public class NewDialogWizard : WizardBase
  11. {
  12. /// <inheritdoc/>
  13. public override bool Run(Designer designer)
  14. {
  15. if (designer.Restrictions.DontCreatePage)
  16. return false;
  17. designer.cmdNewDialog.Invoke();
  18. return true;
  19. }
  20. }
  21. }