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:
@@ -1,4 +1,4 @@
|
||||
using SawCut;
|
||||
using CutList.Core;
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Drawing.Drawing2D;
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\SawCut\SawCut.csproj" />
|
||||
<ProjectReference Include="..\CutList.Core\CutList.Core.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using SawCut;
|
||||
using CutList.Core;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using CutList.Models;
|
||||
using CutList.Presenters;
|
||||
using CutList.Services;
|
||||
using SawCut;
|
||||
using CutList.Core;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
|
||||
2
CutList/Forms/ResultsForm.Designer.cs
generated
2
CutList/Forms/ResultsForm.Designer.cs
generated
@@ -131,7 +131,7 @@
|
||||
//
|
||||
// binBindingSource
|
||||
//
|
||||
this.binBindingSource.DataSource = typeof(SawCut.BinGroup);
|
||||
this.binBindingSource.DataSource = typeof(CutList.Core.BinGroup);
|
||||
//
|
||||
// splitContainer1
|
||||
//
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using SawCut;
|
||||
using CutList.Core;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using SawCut;
|
||||
using CutList.Core;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using Newtonsoft.Json;
|
||||
using SawCut;
|
||||
using CutList.Core;
|
||||
using System;
|
||||
|
||||
namespace CutList.Models
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using CutList.Models;
|
||||
using SawCut;
|
||||
using CutList.Core;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CutList.Presenters
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using CutList.Common;
|
||||
using CutList.Models;
|
||||
using SawCut;
|
||||
using SawCut.Nesting;
|
||||
using CutList.Core;
|
||||
using CutList.Core.Nesting;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CutList.Services
|
||||
/// <param name="stockBins">The available stock bins</param>
|
||||
/// <param name="cuttingTool">The cutting tool to use (determines kerf/spacing)</param>
|
||||
/// <returns>Result containing the packing result with optimized bins and unused items, or error message</returns>
|
||||
public Result<SawCut.Nesting.Result> Pack(List<PartInputItem> parts, List<BinInputItem> stockBins, Tool cuttingTool)
|
||||
public Result<CutList.Core.Nesting.Result> Pack(List<PartInputItem> parts, List<BinInputItem> stockBins, Tool cuttingTool)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -32,11 +32,11 @@ namespace CutList.Services
|
||||
engine.Spacing = cuttingTool.Kerf;
|
||||
|
||||
var packResult = engine.Pack(binItems);
|
||||
return Result<SawCut.Nesting.Result>.Success(packResult);
|
||||
return Result<CutList.Core.Nesting.Result>.Success(packResult);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return Result<SawCut.Nesting.Result>.Failure($"Packing failed: {ex.Message}");
|
||||
return Result<CutList.Core.Nesting.Result>.Failure($"Packing failed: {ex.Message}");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user