DesignerPlugins.cs 596 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.IO;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using System.ComponentModel;
  6. namespace FastReport.Design
  7. {
  8. /// <summary>
  9. /// Represents list of registered design plugins.
  10. /// </summary>
  11. public static class DesignerPlugins
  12. {
  13. internal static List<Type> Plugins = new List<Type>();
  14. /// <summary>
  15. /// Adds a new plugin's type.
  16. /// </summary>
  17. /// <param name="plugin">The type of a plugin.</param>
  18. public static void Add(Type plugin)
  19. {
  20. if (Plugins.IndexOf(plugin) == -1)
  21. Plugins.Add(plugin);
  22. }
  23. }
  24. }