using System;

namespace HwComWrapperNETGui.UserControls
{
    /// <summary>
    ///     The ECU shutdown <see cref="EventArgs"/> class.
    /// </summary>
    public class ECUShutdownEventArgs : EventArgs
    {
        #region Constructors and Destructors

        /// <summary>
        ///     Initializes a new instance of the <see cref="ECUShutdownEventArgs"/> class.
        /// </summary>
        /// <param name="ecuNumber"> the ECU number.</param>
        public ECUShutdownEventArgs(byte ecuNumber)
        {
            this.ecuNumber = ecuNumber;
        }

        #endregion

        #region Public Properties

        /// <summary>
        ///     Gets the ECU number.
        /// </summary>
        public byte ECUNumber
        {
            get
            {
                return this.ecuNumber;
            }
        }

        #endregion

        #region Constants and Fields

        private readonly byte ecuNumber;

        #endregion
    }
}