Пример #1
0
        public string ToLogString()
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendFormat("{0} = {1}\r\n", "Время", DataFormatter.FormatDateTime(time));
            sb.AppendFormat("{0} = {1}\r\n", "Льгота", enabled.GetString());
            sb.AppendFormat("{0} = {1}\r\n", "Состояние", State.GetString());
            sb.AppendFormat("{0} = {1}\r\n", "ID устройства", DeviceId);
            sb.AppendFormat("{0} = {1}", "ID парковки", ParkingId);

            return(sb.ToString());
        }