/// <summary>
        /// Determines whether the specified Object is equal to the current
        /// HeadEndSystemSettings object.
        /// </summary>
        /// <param name="ObjectToCompare">
        /// The Object to compare with the current
        /// HeadEndSystemSettings object.
        /// </param>
        /// <returns>
        /// true if the specified Object is equal to the current
        /// HeadEndSystemSettings object; otherwise, false.
        /// </returns>
        //  Revision History
        //  MM/DD/YY Who Version Issue# Description
        //  -------- --- ------- ------ -------------------------------------------
        //  04/22/13 jrf 2.80.22 TQ8285 Created
        //
        public override bool Equals(System.Object ObjectToCompare)
        {
            bool blnEquals = false;
            HeadEndSystemSettings SystemToCompare = ObjectToCompare as HeadEndSystemSettings;

            // If parameter is null return false.
            if (ObjectToCompare == null)
            {
                blnEquals = false;
            }
            // If parameter cannot be cast to HeadEndSystemSettings return false.
            else if ((System.Object)SystemToCompare == null)
            {
                blnEquals = false;
            }
            else
            {
                // Return true if all the fields match:
                blnEquals = (Name == SystemToCompare.Name) &&
                            (Description == SystemToCompare.Description) &&
                            (UtilityID == SystemToCompare.UtilityID) &&
                            (CellularGatewayAddress == SystemToCompare.CellularGatewayAddress) &&
                            (CellularGatewayPort == SystemToCompare.CellularGatewayPort);
            }

            return(blnEquals);
        }
        /// <summary>
        /// Determines whether the specified HeadEndSystemSettings object is equal to the current
        /// HeadEndSystemSettings object.
        /// </summary>
        /// <param name="SystemToCompare">
        /// The HeadEndSystemSettings object to compare with the current
        /// HeadEndSystemSettings object.
        /// </param>
        /// <returns>
        /// true if the specified HeadEndSystemSettings object is equal to the current
        /// HeadEndSystemSettings object; otherwise, false.
        /// </returns>
        //  Revision History
        //  MM/DD/YY Who Version Issue# Description
        //  -------- --- ------- ------ -------------------------------------------
        //  04/22/13 jrf 2.80.22 TQ8285 Created
        //
        public bool Equals(HeadEndSystemSettings SystemToCompare)
        {
            bool blnEquals = false;

            // If parameter is null return false:
            if ((object)SystemToCompare == null)
            {
                blnEquals = false;
            }
            else
            {
                // Return true if all the fields match:
                blnEquals = (Name == SystemToCompare.Name) &&
                            (Description == SystemToCompare.Description) &&
                            (UtilityID == SystemToCompare.UtilityID) &&
                            (CellularGatewayAddress == SystemToCompare.CellularGatewayAddress) &&
                            (CellularGatewayPort == SystemToCompare.CellularGatewayPort);
            }

            return(blnEquals);
        }
        /// <summary>
        /// Copy Constructor.
        /// </summary>
        //  Revision History
        //  MM/DD/YY Who Version Issue# Description
        //  -------- --- ------- ------ -------------------------------------------
        //  04/22/13 jrf 2.80.22 TQ8285 Created
        //
        public HeadEndSystemSettings(HeadEndSystemSettings SystemSettings)
        {
            InitializeMembers();

            if (null != SystemSettings)
            {
                m_strName        = SystemSettings.Name;
                m_strDescription = SystemSettings.Description;
                m_byUtilityID    = SystemSettings.UtilityID;
                if (null != SystemSettings.CellularGatewayAddress)
                {
                    m_CellularGatewayAddress = new IPAddress(SystemSettings.CellularGatewayAddress.GetAddressBytes());
                }
                m_usCellularGatwayPort = SystemSettings.CellularGatewayPort;
            }
            else
            {
                m_strName                = "";
                m_strDescription         = "";
                m_byUtilityID            = 0;
                m_CellularGatewayAddress = null;
                m_usCellularGatwayPort   = 0;
            }
        }
 /// <summary>
 /// Method removes a given head-end system definiton from the collection.
 /// </summary>
 /// <param name="value">The element to remove.</param>
 //  Revision History
 //  MM/DD/YY Who Version Issue# Description
 //  -------- --- ------- ------ -------------------------------------------
 //  04/22/13 jrf 2.80.22 TQ8285 Created
 //
 public void Remove(HeadEndSystemSettings value)
 {
     List.Remove(value);
 }
 /// <summary>
 /// Method adds a given head-end system definiton to the collection.
 /// </summary>
 /// <param name="value">The element to add.</param>
 /// <returns>The position into which the new element was inserted.</returns>
 //  Revision History
 //  MM/DD/YY Who Version Issue# Description
 //  -------- --- ------- ------ -------------------------------------------
 //  04/22/13 jrf 2.80.22 TQ8285 Created
 //
 public int Add(HeadEndSystemSettings value)
 {
     return(List.Add(value));
 }
 /// <summary>
 /// Method returns the index in the collection of the given head-end system definiton.
 /// </summary>
 /// <param name="value">The element to look for.</param>
 /// <returns>The element's index in the collection.</returns>
 //  Revision History
 //  MM/DD/YY Who Version Issue# Description
 //  -------- --- ------- ------ -------------------------------------------
 //  04/22/13 jrf 2.80.22 TQ8285 Created
 //
 public int IndexOf(HeadEndSystemSettings value)
 {
     return(List.IndexOf(value));
 }
 /// <summary>
 /// Method indicates if a given head-end system definiton is contained within the collection.
 /// </summary>
 /// <param name="value">The element to look for.</param>
 /// <returns>Whether or not the element is in the collection.</returns>
 //  Revision History
 //  MM/DD/YY Who Version Issue# Description
 //  -------- --- ------- ------ -------------------------------------------
 //  04/22/13 jrf 2.80.22 TQ8285 Created
 //
 public bool Contains(HeadEndSystemSettings value)
 {
     return(List.Contains(value));
 }