fix: 收敛旧控件资源与后台线程生命周期
This commit is contained in:
@@ -211,7 +211,10 @@ namespace Lskj.Control
|
||||
private void btnClear_Click(object sender, EventArgs e)
|
||||
{
|
||||
try {
|
||||
pictureEdit1.CreateGraphics().Clear(Color.White);
|
||||
using (Graphics graphics = pictureEdit1.CreateGraphics())
|
||||
{
|
||||
graphics.Clear(Color.White);
|
||||
}
|
||||
_mousePath.Reset();
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
Reference in New Issue
Block a user