yhluo 18 цаг өмнө
parent
commit
3fbb93ec2b

+ 2 - 1
UAS_MES_WEIP/CustomControl/RichText/RichTextAutoBottom.cs

@@ -32,7 +32,8 @@ namespace UAS_MES_NEW.CustomControl.RichText
         public void AppendText(string str, Color color)
         {
             SelectionColor = color;
-            base.AppendText(str);
+            string timePrefix = $"[{DateTime.Now:yyyy-MM-dd HH:mm:ss} ] ";
+            base.AppendText(timePrefix + str);
             //如果颜色是红色则进行提示音
             if (color == Color.Red && Entity.SystemInf.CheckAudioEnable)
             {