using System;
using System.Collections.Generic;
using Ebel.Hardware.Communications;

namespace HwComWrapperNETGui.UserControls
{
    /// <summary>
    ///     The channel configuration <see cref="EventArgs"/> class.
    /// </summary>
    public class ChannelConfigurationsEventArgs : EventArgs
    {
        #region Constructors and Destructors

        /// <summary>
        ///     Initializes a new instance of the <see cref="ChannelConfigurationsEventArgs"/> class.
        /// </summary>
        /// <param name="channelConfigurations"> the channel configuration</param>
        public ChannelConfigurationsEventArgs(IEnumerable<IChannelConfiguration> channelConfigurations)
        {
            this.channelConfigurations = channelConfigurations;
        }

        #endregion

        #region Public Properties

        /// <summary>
        ///     Gets the channel configurations.
        /// </summary>
        public IEnumerable<IChannelConfiguration> ChannelConfigurations
        {
            get
            {
                return this.channelConfigurations;
            }
        }

        #endregion

        #region Constants and Fields

        private readonly IEnumerable<IChannelConfiguration> channelConfigurations;

        #endregion
    }
}