feat: wire ActiveWorkArea from NestProgress to PlateView
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -859,6 +859,7 @@ namespace OpenNest.Controls
|
|||||||
{
|
{
|
||||||
progressForm.UpdateProgress(p);
|
progressForm.UpdateProgress(p);
|
||||||
SetTemporaryParts(p.BestParts);
|
SetTemporaryParts(p.BestParts);
|
||||||
|
ActiveWorkArea = p.ActiveWorkArea;
|
||||||
});
|
});
|
||||||
|
|
||||||
progressForm.Show(FindForm());
|
progressForm.Show(FindForm());
|
||||||
@@ -888,6 +889,7 @@ namespace OpenNest.Controls
|
|||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
ActiveWorkArea = null;
|
||||||
progressForm.Close();
|
progressForm.Close();
|
||||||
cts.Dispose();
|
cts.Dispose();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -759,6 +759,7 @@ namespace OpenNest.Forms
|
|||||||
{
|
{
|
||||||
progressForm.UpdateProgress(p);
|
progressForm.UpdateProgress(p);
|
||||||
activeForm.PlateView.SetTemporaryParts(p.BestParts);
|
activeForm.PlateView.SetTemporaryParts(p.BestParts);
|
||||||
|
activeForm.PlateView.ActiveWorkArea = p.ActiveWorkArea;
|
||||||
});
|
});
|
||||||
|
|
||||||
progressForm.Show(this);
|
progressForm.Show(this);
|
||||||
@@ -817,6 +818,7 @@ namespace OpenNest.Forms
|
|||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
activeForm.PlateView.ActiveWorkArea = null;
|
||||||
progressForm.Close();
|
progressForm.Close();
|
||||||
SetNestingLockout(false);
|
SetNestingLockout(false);
|
||||||
nestingCts.Dispose();
|
nestingCts.Dispose();
|
||||||
@@ -894,6 +896,7 @@ namespace OpenNest.Forms
|
|||||||
{
|
{
|
||||||
progressForm.UpdateProgress(p);
|
progressForm.UpdateProgress(p);
|
||||||
activeForm.PlateView.SetTemporaryParts(p.BestParts);
|
activeForm.PlateView.SetTemporaryParts(p.BestParts);
|
||||||
|
activeForm.PlateView.ActiveWorkArea = p.ActiveWorkArea;
|
||||||
});
|
});
|
||||||
|
|
||||||
progressForm.Show(this);
|
progressForm.Show(this);
|
||||||
@@ -923,6 +926,7 @@ namespace OpenNest.Forms
|
|||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
activeForm.PlateView.ActiveWorkArea = null;
|
||||||
progressForm.Close();
|
progressForm.Close();
|
||||||
SetNestingLockout(false);
|
SetNestingLockout(false);
|
||||||
nestingCts.Dispose();
|
nestingCts.Dispose();
|
||||||
@@ -954,6 +958,7 @@ namespace OpenNest.Forms
|
|||||||
{
|
{
|
||||||
progressForm.UpdateProgress(p);
|
progressForm.UpdateProgress(p);
|
||||||
activeForm.PlateView.SetTemporaryParts(p.BestParts);
|
activeForm.PlateView.SetTemporaryParts(p.BestParts);
|
||||||
|
activeForm.PlateView.ActiveWorkArea = p.ActiveWorkArea;
|
||||||
});
|
});
|
||||||
|
|
||||||
Action<List<Part>> onComplete = parts =>
|
Action<List<Part>> onComplete = parts =>
|
||||||
@@ -963,6 +968,7 @@ namespace OpenNest.Forms
|
|||||||
else
|
else
|
||||||
activeForm.PlateView.ClearTemporaryParts();
|
activeForm.PlateView.ClearTemporaryParts();
|
||||||
|
|
||||||
|
activeForm.PlateView.ActiveWorkArea = null;
|
||||||
progressForm.Close();
|
progressForm.Close();
|
||||||
SetNestingLockout(false);
|
SetNestingLockout(false);
|
||||||
nestingCts.Dispose();
|
nestingCts.Dispose();
|
||||||
|
|||||||
Reference in New Issue
Block a user