using System;

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

        /// <summary>
        ///     Initializes a new instance of the <see cref="ECUControlEventArgs"/> class.
        /// </summary>
        /// <param name="ecuNumber"> the ECU number.</param>
        /// <param name="useFullControl"> the use full control.</param>
        /// <param name="ecuOn"> the ECU on.</param>
        public ECUControlEventArgs(byte ecuNumber, bool useFullControl, bool ecuOn)
        {
            this.ecuNumber = ecuNumber;
            this.useFullControl = useFullControl;
            this.ecuOn = ecuOn;
        }

        #endregion

        #region Public Properties

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

        /// <summary>
        ///     Gets the ECU on.
        /// </summary>
        public bool ECUOn
        {
            get
            {
                return this.ecuOn;
            }
        }

        /// <summary>
        ///     Gets the use full control.
        /// </summary>
        public bool UseFullControl
        {
            get
            {
                return this.useFullControl;
            }
        }

        #endregion

        #region Constants and Fields

        private readonly byte ecuNumber;
        private readonly bool ecuOn;
        private readonly bool useFullControl;

        #endregion
    }
}