ConnectionCollection.cs 983 B

123456789101112131415161718192021222324252627282930313233
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.Collections;
  5. using FastReport.Utils;
  6. namespace FastReport.Data
  7. {
  8. /// <summary>
  9. /// Represents the collection of <see cref="DataConnectionBase"/> objects.
  10. /// </summary>
  11. public class ConnectionCollection : FRCollectionBase
  12. {
  13. /// <summary>
  14. /// Gets or sets a data connection.
  15. /// </summary>
  16. /// <param name="index">The index of a data connection in this collection.</param>
  17. /// <returns>The data connection with specified index.</returns>
  18. public DataConnectionBase this[int index]
  19. {
  20. get { return List[index] as DataConnectionBase; }
  21. set { List[index] = value; }
  22. }
  23. /// <summary>
  24. /// Initializes a new instance of the <see cref="ConnectionCollection"/> class with default settings.
  25. /// </summary>
  26. /// <param name="owner">The owner of this collection.</param>
  27. public ConnectionCollection(Base owner) : base(owner)
  28. {
  29. }
  30. }
  31. }