merge: 合并初始化缓存与资源释放优化
This commit is contained in:
@@ -418,7 +418,7 @@ namespace Lskj.Control
|
||||
if (model.IsStrickOut) fontStyle = fontStyle | FontStyle.Strikeout;
|
||||
if (model.IsUnderLine) fontStyle = fontStyle | FontStyle.Underline;
|
||||
|
||||
e.Appearance.Font = new Font(e.Appearance.Font, fontStyle);
|
||||
e.Appearance.FontStyleDelta = fontStyle;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
@@ -471,7 +471,7 @@ namespace Lskj.Control
|
||||
if (model.IsStrickOut) fontStyle = fontStyle | FontStyle.Strikeout;
|
||||
if (model.IsUnderLine) fontStyle = fontStyle | FontStyle.Underline;
|
||||
|
||||
e.Appearance.Font = new Font(e.Appearance.Font, fontStyle);
|
||||
e.Appearance.FontStyleDelta = fontStyle;
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
|
||||
Reference in New Issue
Block a user