StimulSoftImportPlugin.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using FastReport.Import.StimulSoft;
  2. namespace FastReport.Design.ImportPlugins.StimulSoft
  3. {
  4. /// <summary>
  5. /// Represents the StimulSoft import plugin.
  6. /// </summary>
  7. public partial class StimulSoftImportPlugin : ImportPlugin
  8. {
  9. #region Constructors
  10. /// <summary>
  11. /// Initializes a new instance of the <see cref="StimulSoftImportPlugin"/> class.
  12. /// </summary>
  13. public StimulSoftImportPlugin() : base()
  14. {
  15. Import = new StimulSoftImport();
  16. }
  17. /// <summary>
  18. /// Initializes a new instance of the <see cref="StimulSoftImportPlugin"/> class with a specified designer.
  19. /// </summary>
  20. /// <param name="designer">The report designer.</param>
  21. public StimulSoftImportPlugin(Designer designer) : base(designer)
  22. {
  23. Import = new StimulSoftImport();
  24. }
  25. #endregion // Constructors
  26. #region Protected Methods
  27. /// <inheritdoc/>
  28. protected override string GetFilter()
  29. {
  30. return new Utils.MyRes("FileFilters").Get("StimulSoftFile");
  31. }
  32. #endregion // Protected Methods
  33. #region Public Methods
  34. /// <inheritdoc/>
  35. public override void LoadReport(Report report, string filename)
  36. {
  37. Import.LoadReport(report, filename);
  38. }
  39. #endregion // Public Methods
  40. }
  41. }