SVN-Revision: r709
This commit is contained in:
tdx
2025-06-11 01:02:22 +00:00
parent 9f9a2aa75a
commit 0736f70790
2 changed files with 50 additions and 1 deletions
+17
View File
@@ -25,6 +25,10 @@ namespace Lskj.Control
/// </summary>
public partial class LabelRemarkEdit : BaseUserControl
{
/// <summary>
/// 当 lasttext 为空(清空)时触发。
/// </summary>
public event EventHandler LastTextEmpty;
/// <summary>
/// 文本控件
/// </summary>
@@ -78,9 +82,22 @@ namespace Lskj.Control
}
}
}
else
{
txtEdit.Text = filename;
this.filepath = file;
OnLastTextEmpty();
}
}
/// <summary>
/// 拖拽为空触发回调
/// </summary>
protected virtual void OnLastTextEmpty()
{
LastTextEmpty?.Invoke(this, EventArgs.Empty);
}
/// <summary>
/// 取出最后一次出现 "-S" 之前的部分(不含扩展名)
/// </summary>
private static string GetPrefixBeforeLastS(string fileName, StringComparison comp)