SVN-Revision: r246
This commit is contained in:
tdx
2025-02-06 10:25:34 +00:00
parent 6e62e968ae
commit 4c939a9eab
2 changed files with 2 additions and 34 deletions
@@ -753,36 +753,4 @@ namespace Lskj.Control
/// <param name="e">The <see cref="KeyEvnentArgs"/> instance containing the event data.</param>
protected void OnAutoGridLookUpKeyUp(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
this._popup.Focus();
}
else
{
this.RefreshPopupDataSource(this.Text.Contains(",") ? string.Empty : this.Text);
}
this.ShowPopup();
}
/// <summary>
/// <para>说明:释放时清理数据源</para>
/// <para>创建人:龚宇超</para>
/// <para>创建日期:2018-03-16 </para>
/// <para>修改人:</para>
/// <para>修改日期:</para>
/// <para>修改备注:</para>
/// <para>版本:1.0</para>
private void OnAutoTreeLookUp_Disposed(object sender, EventArgs e)
{
if (this.DataSourceTable != null)
{
this.DataSourceTable.Clear();
this.DataSourceTable.Dispose();
}
if (this.DataSource != null)
{
this.DataSource = null;
}
GC.Collect();
}
}
}
if (e.KeyCode == Keys.Ent
@@ -331,4 +331,4 @@ namespace Lskj.Control
_lookUpForm.SourceSQL = sqlValue;
//_lookUpForm.DataSource = MainImpl.GetDataTableResult(sqlValue);
}
_lo
_l