示例#1
0
        private void ShowMsg(string msg)
        {
            if (TBX_Board.Lines.Length > 999)
            {
                ClearMsg();
            }

            TBX_Board.AppendText($"{DateTime.Now:yyyy-MM-dd hh:mm:ss}: {msg}");
            if (!msg.EndsWith(Environment.NewLine))
            {
                TBX_Board.AppendText(Environment.NewLine);
            }
        }
示例#2
0
 private void ClearMsg()
 {
     TBX_Board.Clear();
 }