|
@@ -32,7 +32,8 @@ namespace UAS_MES_NEW.CustomControl.RichText
|
|
|
public void AppendText(string str, Color color)
|
|
public void AppendText(string str, Color color)
|
|
|
{
|
|
{
|
|
|
SelectionColor = 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)
|
|
if (color == Color.Red && Entity.SystemInf.CheckAudioEnable)
|
|
|
{
|
|
{
|