merge: 合并初始化缓存与资源释放优化
This commit is contained in:
@@ -73,6 +73,10 @@ namespace Lskj.Control
|
||||
/// </summary>
|
||||
private bool isFirstVisableCol = true;
|
||||
/// <summary>
|
||||
/// 表格自定义字体
|
||||
/// </summary>
|
||||
private System.Drawing.Text.PrivateFontCollection customFont = new System.Drawing.Text.PrivateFontCollection();
|
||||
/// <summary>
|
||||
/// The _grid enum object
|
||||
/// </summary>
|
||||
private HeaderSiftEnum _columnEnumObj;
|
||||
@@ -677,6 +681,11 @@ namespace Lskj.Control
|
||||
_mainGridToolTipController.Dispose();
|
||||
_mainGridToolTipController = null;
|
||||
}
|
||||
if (customFont != null)
|
||||
{
|
||||
customFont.Dispose();
|
||||
customFont = null;
|
||||
}
|
||||
}
|
||||
|
||||
private void PrepareForColumnRebuild()
|
||||
|
||||
Reference in New Issue
Block a user