WizardBase.cs 991 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Drawing;
  5. using FastReport.Design;
  6. using FastReport.Utils;
  7. namespace FastReport.Wizards
  8. {
  9. /// <summary>
  10. /// The base class for all report wizards.
  11. /// </summary>
  12. /// <remarks>
  13. /// To create own wizard, use this class as a base. All you need is to override
  14. /// the <see cref="Run"/> method. To register a wizard, use the
  15. /// <see cref="RegisteredObjects.AddWizard(Type,Bitmap,string,bool)"/> method.
  16. /// </remarks>
  17. public abstract class WizardBase
  18. {
  19. /// <summary>
  20. /// Runs the wizard.
  21. /// </summary>
  22. /// <param name="designer">Report designer.</param>
  23. /// <returns><b>true</b> if wizard was executed succesfully.</returns>
  24. /// <remarks>
  25. /// This method is called when you select a wizard in the "Add New Item" window and
  26. /// click "Add" button. You should do the work in this method.
  27. /// </remarks>
  28. public abstract bool Run(Designer designer);
  29. }
  30. }