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

namespace HwComWrapperNETGui.UserControls
{
    /// <summary>
    ///     The send message <see cref="EventArgs"/> class.
    /// </summary>
    public class SendMessageEventArgs : EventArgs
    {
        #region Constructors and Destructors

        /// <summary>
        ///     Initializes a new instance of the <see cref="SendMessageEventArgs"/> class.
        /// </summary>
        /// <param name="sendMessageConfiguration"> the bus type.</param>
        // ReSharper disable once InconsistentNaming
        public SendMessageEventArgs(ISendMessageConfiguration sendMessageConfiguration)
        {
            this.sendMessageConfiguration = sendMessageConfiguration;
        }

        #endregion

        #region Public Properties

        /// <summary>
        ///     Gets the message configuration
        /// </summary>
        public ISendMessageConfiguration MessageConfiguration
        {
            get
            {
                return this.sendMessageConfiguration;
            }
        }
        
        #endregion

        #region Constants and Fields

        /// <summary>
        /// The send message configuration.
        /// </summary>
        private readonly ISendMessageConfiguration sendMessageConfiguration;
        #endregion
    }
}