SVN r709
SVN-Revision: r709
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user