refactor: update MainForm callsites to use PlateManager directly

Replace all backward-compat wrapper calls on EditNestForm (LoadFirstPlate,
LoadLastPlate, LoadNextPlate, LoadPreviousPlate, IsFirstPlate, IsLastPlate,
EnsureSentinelPlate, CurrentPlateIndex, PlateCount) with direct access to
activeForm.PlateManager. Remove the now-unused wrapper methods and properties
from EditNestForm.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-05 23:58:57 -04:00
parent 107fd86066
commit 3d23ad8073
2 changed files with 17 additions and 37 deletions
-13
View File
@@ -232,19 +232,6 @@ namespace OpenNest.Forms
public DateTime LastSaveDate { get; private set; }
public int CurrentPlateIndex => PlateManager.CurrentIndex;
public int PlateCount => PlateManager.Count;
// Delegating methods kept for backward compatibility with MainForm (until Task 7)
public void LoadFirstPlate() => PlateManager.LoadFirst();
public void LoadLastPlate() => PlateManager.LoadLast();
public bool LoadNextPlate() => PlateManager.LoadNext();
public bool LoadPreviousPlate() => PlateManager.LoadPrevious();
public bool IsFirstPlate() => PlateManager.IsFirst;
public bool IsLastPlate() => PlateManager.IsLast;
public void EnsureSentinelPlate() => PlateManager.EnsureSentinel();
public void UpdatePlateList()
{
updatingPlateList = true;