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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user