步进电机 挡料地

This commit is contained in:
Admin
2025-04-22 18:03:12 +08:00
parent 74051a4287
commit 33e94b92f9
13 changed files with 1378 additions and 585 deletions

View File

@ -253,10 +253,16 @@ namespace DHSoftware.Views
private void AutoScrollIfNeeded()
{
if (lvLog.Items.Count > 0 /*&& chkAutoScroll.Checked*/)
try
{
lvLog.EnsureVisible(lvLog.Items.Count - 1);
if (lvLog.Items.Count > 0 /*&& chkAutoScroll.Checked*/)
{
lvLog.EnsureVisible(lvLog.Items.Count - 1);
}
}
catch (Exception ex) {
}
}
private void UpdateLayout()