修复性能窗口最小化异常的BUG

This commit is contained in:
dathlin
2017-07-07 13:14:22 +08:00
parent 898472688a
commit f4e7add825

View File

@@ -54,8 +54,11 @@ namespace CommonLibrary
{
if (IsWindowShow)
{
pictureBox1.Image?.Dispose();
pictureBox1.Image = HslCommunication.BasicFramework.SoftPainting.GetGraphicFromArray(data, pictureBox1.Width - 2, pictureBox1.Height - 2, 7, Color.Blue);
if (pictureBox1.Width > 10)
{
pictureBox1.Image?.Dispose();
pictureBox1.Image = HslCommunication.BasicFramework.SoftPainting.GetGraphicFromArray(data, pictureBox1.Width - 2, pictureBox1.Height - 2, 7, Color.Blue);
}
}
}
DataTemp = data;