示例#1
0
        public void AppendActionLog(string logMsg)
        {
            TbLogger.AppendText(logMsg);
            TbLogger.AppendText("\r\n");
            TbLogger.ScrollToEnd();

            SyncActionWnd(logMsg);
        }
示例#2
0
        private void AppendLoggerText(string str)
        {
            int length = TbLogger.Text.Length;

            if (length > 100 * 1024)
            {
                length        = 0;
                TbLogger.Text = "----Logger exceed max, clear\r\n";
            }

            TbLogger.Text += str;

            TbLogger.CaretIndex = (length + str.Length);
            TbLogger.ScrollToEnd();

            var lineCount = CountLine(str);

            currentLineCount += lineCount;
            txtCount.Text     = $"{currentLineCount}";
        }
示例#3
0
 public void AppendLog(string logMsg)
 {
     TbLogger.AppendText(logMsg);
     TbLogger.ScrollToEnd();
 }