Пример #1
0
        /// <summary>
        /// Returns a string representation of the object
        /// </summary>
        /// <returns>String of the object</returns>
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendLine("ControlLogix Processor");
            sb.AppendLine("\tIP Address     : " + _ipAddress.ToString());
            sb.AppendLine("\tConnected      : " + (_session.Connected ? "Yes" : "No"));
            sb.AppendLine("\tProcessor      : " + _productName);
            sb.AppendLine("\tFault State    : " + _faultState.ToString());
            sb.AppendLine("\tKey Position   : " + _keySw.ToString());
            sb.AppendLine("\tProcessor State: " + _state.ToString());

            return(sb.ToString());
        }