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>
40 lines
881 B
C#
40 lines
881 B
C#
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);
|
|
}
|
|
}
|
|
} |