using Ebel.Hardware.Communications;
using System;

namespace HwComWrapperNETGui.UserControls
{
    public class ServiceControlEventArgs : EventArgs
    {
        #region Constructors and Destructors

        /// <summary>
        ///     Initializes a new instance of the <see cref="ServiceControlEventArgs"/> class.
        /// </summary>
        /// <param name="serviceControl"> Parameter of Service Control.</param>
        /// <param name="serviceOn"> Service on.</param>
        ///
        public ServiceControlEventArgs(RBSServiceControl serviceControl, bool serviceOn)
        {
            this.serviceControl = serviceControl;
            this.serviceOn = serviceOn;
        }

        #endregion

        #region Public Properties

        /// <summary>
        ///     Gets the parameter of service control.
        /// </summary>
        public RBSServiceControl serviceControl { get; private set; }

        /// <summary>
        ///     Gets the service on.
        /// </summary>
        public bool ServiceOn
        {
            get
            {
                return this.serviceOn;
            }
        }

        #endregion

        #region Constants and Fields

        private readonly bool serviceOn;

        #endregion
    }
}
