public void AppendActionLog(string logMsg) { TbLogger.AppendText(logMsg); TbLogger.AppendText("\r\n"); TbLogger.ScrollToEnd(); SyncActionWnd(logMsg); }
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}"; }
public void AppendLog(string logMsg) { TbLogger.AppendText(logMsg); TbLogger.ScrollToEnd(); }