Rename SawCut library to CutList.Core
Rename the core library project from SawCut to CutList.Core for consistent branding across the solution. This includes: - Rename project folder and .csproj file - Update namespace from SawCut to CutList.Core - Update all using statements and project references Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
40
CutList.Core/Nesting/Result.cs
Normal file
40
CutList.Core/Nesting/Result.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CutList.Core.Nesting
|
||||
{
|
||||
public class Result
|
||||
{
|
||||
private readonly List<BinItem> _itemsNotUsed;
|
||||
private readonly List<Bin> _bins;
|
||||
|
||||
public Result()
|
||||
{
|
||||
_itemsNotUsed = new List<BinItem>();
|
||||
_bins = new List<Bin>();
|
||||
}
|
||||
|
||||
public IReadOnlyList<BinItem> ItemsNotUsed => _itemsNotUsed;
|
||||
|
||||
public IReadOnlyList<Bin> Bins => _bins;
|
||||
|
||||
public void AddItemNotUsed(BinItem item)
|
||||
{
|
||||
_itemsNotUsed.Add(item);
|
||||
}
|
||||
|
||||
public void AddItemsNotUsed(IEnumerable<BinItem> items)
|
||||
{
|
||||
_itemsNotUsed.AddRange(items);
|
||||
}
|
||||
|
||||
public void AddBin(Bin bin)
|
||||
{
|
||||
_bins.Add(bin);
|
||||
}
|
||||
|
||||
public void AddBins(IEnumerable<Bin> bins)
|
||||
{
|
||||
_bins.AddRange(bins);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user