提交当前本机最新程序

This commit is contained in:
cyf
2026-07-16 16:05:38 +08:00
parent 43ae774164
commit 6be6607a40
47 changed files with 7895 additions and 811 deletions
+21 -1
View File
@@ -203,9 +203,29 @@ namespace Lskj.Control
}
set
{
this.txtEdit.Text = value;
//this.txtEdit.Text = value;
this.txtEdit.Text = NormalizeMemoText(value);
}
}
/// <summary>
/// 处理换行 (\n的换行不会生效,必须要\r\n才行。这里会把\n转成\r\n)
/// </summary>
/// <param name="value"></param>
/// <returns></returns>
private static string NormalizeMemoText(string value)
{
if (string.IsNullOrEmpty(value)) return value;
return value
.Replace("\r\n", "\n") // 先把 CRLF 压成 LF
.Replace("\r", "\n") // 再把单独 CR 压成 LF
.Replace("\n", Environment.NewLine); // 最后统一成 Windows CRLF
}
/// <summary>
/// <para>说明:设置控件提示文本</para>
/// <para>创建人:龚宇超</para>