fix: 收敛旧模块资源释放与诊断

This commit is contained in:
2026-08-15 10:13:08 +08:00
parent 222ae3c08a
commit c49015d390
60 changed files with 4218 additions and 409 deletions
@@ -28,6 +28,24 @@ namespace Lskj.PubModelAdd2
{
InitializeComponent();
}
private void ReleaseResourcesForDispose()
{
if (mResourcesReleased)
{
return;
}
mResourcesReleased = true;
MyControl search = _leftGridSearchObj;
_leftGridSearchObj = null;
if (search != null)
{
search.OnDataSourceBindCallBack -=
OnLeftControlObjDataSourceBindCallBack;
search.Dispose();
}
}
#region
/// <summary>
/// 模块初始化完成
@@ -45,6 +63,7 @@ namespace Lskj.PubModelAdd2
/// 左侧表格查询条件
/// </summary>
private MyControl _leftGridSearchObj;
private bool mResourcesReleased;
#endregion
#region
/// <summary>