From 4911d058696019cb0cbd999eb59f300c9dd5a0a0 Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Mon, 16 Mar 2026 12:57:51 -0400 Subject: [PATCH] feat: wire ActiveWorkArea from NestProgress to PlateView Co-Authored-By: Claude Sonnet 4.6 --- OpenNest/Controls/PlateView.cs | 2 ++ OpenNest/Forms/MainForm.cs | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/OpenNest/Controls/PlateView.cs b/OpenNest/Controls/PlateView.cs index a287265..8dc8bd1 100644 --- a/OpenNest/Controls/PlateView.cs +++ b/OpenNest/Controls/PlateView.cs @@ -859,6 +859,7 @@ namespace OpenNest.Controls { progressForm.UpdateProgress(p); SetTemporaryParts(p.BestParts); + ActiveWorkArea = p.ActiveWorkArea; }); progressForm.Show(FindForm()); @@ -888,6 +889,7 @@ namespace OpenNest.Controls } finally { + ActiveWorkArea = null; progressForm.Close(); cts.Dispose(); } diff --git a/OpenNest/Forms/MainForm.cs b/OpenNest/Forms/MainForm.cs index 26c6d50..df40213 100644 --- a/OpenNest/Forms/MainForm.cs +++ b/OpenNest/Forms/MainForm.cs @@ -759,6 +759,7 @@ namespace OpenNest.Forms { progressForm.UpdateProgress(p); activeForm.PlateView.SetTemporaryParts(p.BestParts); + activeForm.PlateView.ActiveWorkArea = p.ActiveWorkArea; }); progressForm.Show(this); @@ -817,6 +818,7 @@ namespace OpenNest.Forms } finally { + activeForm.PlateView.ActiveWorkArea = null; progressForm.Close(); SetNestingLockout(false); nestingCts.Dispose(); @@ -894,6 +896,7 @@ namespace OpenNest.Forms { progressForm.UpdateProgress(p); activeForm.PlateView.SetTemporaryParts(p.BestParts); + activeForm.PlateView.ActiveWorkArea = p.ActiveWorkArea; }); progressForm.Show(this); @@ -923,6 +926,7 @@ namespace OpenNest.Forms } finally { + activeForm.PlateView.ActiveWorkArea = null; progressForm.Close(); SetNestingLockout(false); nestingCts.Dispose(); @@ -954,6 +958,7 @@ namespace OpenNest.Forms { progressForm.UpdateProgress(p); activeForm.PlateView.SetTemporaryParts(p.BestParts); + activeForm.PlateView.ActiveWorkArea = p.ActiveWorkArea; }); Action> onComplete = parts => @@ -963,6 +968,7 @@ namespace OpenNest.Forms else activeForm.PlateView.ClearTemporaryParts(); + activeForm.PlateView.ActiveWorkArea = null; progressForm.Close(); SetNestingLockout(false); nestingCts.Dispose();