コード例 #1
0
        /// <summary> Add a reading log line to the log  </summary>
        /// <param name="LogLine"> Information to add to the log </param>
        public void Add_Log(string LogLine)
        {
            if (ReadingLog == null)
            {
                ReadingLog = new List <string>();
            }

            ReadingLog.Add(DateTime.Now.Hour.ToString().PadLeft(2, '0') + ":" + DateTime.Now.Minute.ToString().PadLeft(2, '0') + ":" + DateTime.Now.Second.ToString().PadLeft(2, '0') + "." + DateTime.Now.Millisecond.ToString().PadLeft(3, '0') + " - " + LogLine);
        }
コード例 #2
0
        /// <summary> Add an empty line to the reading log  </summary>
        public void Add_Log()
        {
            if (ReadingLog == null)
            {
                ReadingLog = new List <string>();
            }

            ReadingLog.Add(String.Empty);
        }