From f25e31698f1da4dd77611970530dffd64dae6a57 Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Wed, 28 Jan 2026 12:31:30 -0500 Subject: [PATCH] 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 --- {SawCut => CutList.Core}/ArchUnits.cs | 2 +- {SawCut => CutList.Core}/BestCombination.cs | 2 +- {SawCut => CutList.Core}/Bin.cs | 2 +- {SawCut => CutList.Core}/BinComparer.cs | 2 +- {SawCut => CutList.Core}/BinGroup.cs | 2 +- {SawCut => CutList.Core}/BinItem.cs | 2 +- .../SawCut.csproj => CutList.Core/CutList.Core.csproj | 0 {SawCut => CutList.Core}/FormatHelper.cs | 2 +- {SawCut => CutList.Core}/Fraction.cs | 2 +- {SawCut => CutList.Core}/MultiBin.cs | 2 +- {SawCut => CutList.Core}/Nesting/AdvancedFitEngine.cs | 6 +++--- {SawCut => CutList.Core}/Nesting/BestFitEngine.cs | 2 +- {SawCut => CutList.Core}/Nesting/EngineFactory.cs | 2 +- {SawCut => CutList.Core}/Nesting/IEngine.cs | 2 +- {SawCut => CutList.Core}/Nesting/IEngineFactory.cs | 2 +- {SawCut => CutList.Core}/Nesting/MultiBinEngine.cs | 2 +- {SawCut => CutList.Core}/Nesting/Result.cs | 2 +- {SawCut => CutList.Core}/Properties/AssemblyInfo.cs | 4 ++-- {SawCut => CutList.Core}/Tolerance.cs | 2 +- CutList.sln | 2 +- CutList/Controls/BinLayoutView.cs | 2 +- CutList/CutList.csproj | 2 +- CutList/Forms/BinFileSaver.cs | 2 +- CutList/Forms/MainForm.cs | 2 +- CutList/Forms/ResultsForm.Designer.cs | 2 +- CutList/Forms/ResultsForm.cs | 2 +- CutList/Helper.cs | 2 +- CutList/Models/LengthItem.cs | 2 +- CutList/Presenters/IMainView.cs | 2 +- CutList/Services/CutListService.cs | 10 +++++----- 30 files changed, 36 insertions(+), 36 deletions(-) rename {SawCut => CutList.Core}/ArchUnits.cs (98%) rename {SawCut => CutList.Core}/BestCombination.cs (99%) rename {SawCut => CutList.Core}/Bin.cs (98%) rename {SawCut => CutList.Core}/BinComparer.cs (99%) rename {SawCut => CutList.Core}/BinGroup.cs (98%) rename {SawCut => CutList.Core}/BinItem.cs (99%) rename SawCut/SawCut.csproj => CutList.Core/CutList.Core.csproj (100%) rename {SawCut => CutList.Core}/FormatHelper.cs (98%) rename {SawCut => CutList.Core}/Fraction.cs (99%) rename {SawCut => CutList.Core}/MultiBin.cs (99%) rename {SawCut => CutList.Core}/Nesting/AdvancedFitEngine.cs (98%) rename {SawCut => CutList.Core}/Nesting/BestFitEngine.cs (98%) rename {SawCut => CutList.Core}/Nesting/EngineFactory.cs (94%) rename {SawCut => CutList.Core}/Nesting/IEngine.cs (80%) rename {SawCut => CutList.Core}/Nesting/IEngineFactory.cs (95%) rename {SawCut => CutList.Core}/Nesting/MultiBinEngine.cs (98%) rename {SawCut => CutList.Core}/Nesting/Result.cs (96%) rename {SawCut => CutList.Core}/Properties/AssemblyInfo.cs (93%) rename {SawCut => CutList.Core}/Tolerance.cs (92%) diff --git a/SawCut/ArchUnits.cs b/CutList.Core/ArchUnits.cs similarity index 98% rename from SawCut/ArchUnits.cs rename to CutList.Core/ArchUnits.cs index e55965b..22bbbc3 100644 --- a/SawCut/ArchUnits.cs +++ b/CutList.Core/ArchUnits.cs @@ -2,7 +2,7 @@ using System.Text; using System.Text.RegularExpressions; -namespace SawCut +namespace CutList.Core { public static class ArchUnits { diff --git a/SawCut/BestCombination.cs b/CutList.Core/BestCombination.cs similarity index 99% rename from SawCut/BestCombination.cs rename to CutList.Core/BestCombination.cs index 1091f43..eaca643 100644 --- a/SawCut/BestCombination.cs +++ b/CutList.Core/BestCombination.cs @@ -1,6 +1,6 @@ using System; -namespace SawCut +namespace CutList.Core { public static class BestCombination { diff --git a/SawCut/Bin.cs b/CutList.Core/Bin.cs similarity index 98% rename from SawCut/Bin.cs rename to CutList.Core/Bin.cs index 1542faa..76b1a55 100644 --- a/SawCut/Bin.cs +++ b/CutList.Core/Bin.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Linq; -namespace SawCut +namespace CutList.Core { public class Bin { diff --git a/SawCut/BinComparer.cs b/CutList.Core/BinComparer.cs similarity index 99% rename from SawCut/BinComparer.cs rename to CutList.Core/BinComparer.cs index 37fc8bc..7ab8600 100644 --- a/SawCut/BinComparer.cs +++ b/CutList.Core/BinComparer.cs @@ -2,7 +2,7 @@ using System; using System.Collections.Generic; using System.Linq; -namespace SawCut +namespace CutList.Core { /// /// Compares bins to determine if they are identical (same items in same order). diff --git a/SawCut/BinGroup.cs b/CutList.Core/BinGroup.cs similarity index 98% rename from SawCut/BinGroup.cs rename to CutList.Core/BinGroup.cs index ec115e7..81be70b 100644 --- a/SawCut/BinGroup.cs +++ b/CutList.Core/BinGroup.cs @@ -2,7 +2,7 @@ using System; using System.Collections.Generic; using System.Linq; -namespace SawCut +namespace CutList.Core { /// /// Represents a group of identical bins (bins with the same items in the same order). diff --git a/SawCut/BinItem.cs b/CutList.Core/BinItem.cs similarity index 99% rename from SawCut/BinItem.cs rename to CutList.Core/BinItem.cs index 1ec90ed..f73d6f6 100644 --- a/SawCut/BinItem.cs +++ b/CutList.Core/BinItem.cs @@ -1,6 +1,6 @@ using System; -namespace SawCut +namespace CutList.Core { /// /// Represents an item to be placed in a bin. diff --git a/SawCut/SawCut.csproj b/CutList.Core/CutList.Core.csproj similarity index 100% rename from SawCut/SawCut.csproj rename to CutList.Core/CutList.Core.csproj diff --git a/SawCut/FormatHelper.cs b/CutList.Core/FormatHelper.cs similarity index 98% rename from SawCut/FormatHelper.cs rename to CutList.Core/FormatHelper.cs index ab47589..0d88a8a 100644 --- a/SawCut/FormatHelper.cs +++ b/CutList.Core/FormatHelper.cs @@ -1,6 +1,6 @@ using System; -namespace SawCut +namespace CutList.Core { /// /// Provides formatting utilities for displaying measurements and values. diff --git a/SawCut/Fraction.cs b/CutList.Core/Fraction.cs similarity index 99% rename from SawCut/Fraction.cs rename to CutList.Core/Fraction.cs index 5634ad0..3bd203e 100644 --- a/SawCut/Fraction.cs +++ b/CutList.Core/Fraction.cs @@ -3,7 +3,7 @@ using System.Linq; using System.Text; using System.Text.RegularExpressions; -namespace SawCut +namespace CutList.Core { public static class Fraction { diff --git a/SawCut/MultiBin.cs b/CutList.Core/MultiBin.cs similarity index 99% rename from SawCut/MultiBin.cs rename to CutList.Core/MultiBin.cs index 2e60387..d25154f 100644 --- a/SawCut/MultiBin.cs +++ b/CutList.Core/MultiBin.cs @@ -1,6 +1,6 @@ using System; -namespace SawCut +namespace CutList.Core { /// /// Represents a type of bin with quantity and priority. diff --git a/SawCut/Nesting/AdvancedFitEngine.cs b/CutList.Core/Nesting/AdvancedFitEngine.cs similarity index 98% rename from SawCut/Nesting/AdvancedFitEngine.cs rename to CutList.Core/Nesting/AdvancedFitEngine.cs index fd23bcf..93314ee 100644 --- a/SawCut/Nesting/AdvancedFitEngine.cs +++ b/CutList.Core/Nesting/AdvancedFitEngine.cs @@ -1,11 +1,11 @@ -using SawCut.Nesting; -using SawCut; +using CutList.Core.Nesting; +using CutList.Core; using System; using System.Collections.Generic; using System.Data; using System.Linq; -namespace SawCut.Nesting +namespace CutList.Core.Nesting { public class AdvancedFitEngine : IEngine { diff --git a/SawCut/Nesting/BestFitEngine.cs b/CutList.Core/Nesting/BestFitEngine.cs similarity index 98% rename from SawCut/Nesting/BestFitEngine.cs rename to CutList.Core/Nesting/BestFitEngine.cs index a60e0f1..3d752bc 100644 --- a/SawCut/Nesting/BestFitEngine.cs +++ b/CutList.Core/Nesting/BestFitEngine.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Data; using System.Linq; -namespace SawCut.Nesting +namespace CutList.Core.Nesting { public class BestFitEngine : IEngine { diff --git a/SawCut/Nesting/EngineFactory.cs b/CutList.Core/Nesting/EngineFactory.cs similarity index 94% rename from SawCut/Nesting/EngineFactory.cs rename to CutList.Core/Nesting/EngineFactory.cs index 6e66b2b..97e12e8 100644 --- a/SawCut/Nesting/EngineFactory.cs +++ b/CutList.Core/Nesting/EngineFactory.cs @@ -1,4 +1,4 @@ -namespace SawCut.Nesting +namespace CutList.Core.Nesting { /// /// Default implementation of IEngineFactory that creates AdvancedFitEngine instances. diff --git a/SawCut/Nesting/IEngine.cs b/CutList.Core/Nesting/IEngine.cs similarity index 80% rename from SawCut/Nesting/IEngine.cs rename to CutList.Core/Nesting/IEngine.cs index 6efc997..6182bc1 100644 --- a/SawCut/Nesting/IEngine.cs +++ b/CutList.Core/Nesting/IEngine.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SawCut.Nesting +namespace CutList.Core.Nesting { public interface IEngine { diff --git a/SawCut/Nesting/IEngineFactory.cs b/CutList.Core/Nesting/IEngineFactory.cs similarity index 95% rename from SawCut/Nesting/IEngineFactory.cs rename to CutList.Core/Nesting/IEngineFactory.cs index 8b0f0ab..beacf50 100644 --- a/SawCut/Nesting/IEngineFactory.cs +++ b/CutList.Core/Nesting/IEngineFactory.cs @@ -1,4 +1,4 @@ -namespace SawCut.Nesting +namespace CutList.Core.Nesting { /// /// Factory interface for creating bin packing engines. diff --git a/SawCut/Nesting/MultiBinEngine.cs b/CutList.Core/Nesting/MultiBinEngine.cs similarity index 98% rename from SawCut/Nesting/MultiBinEngine.cs rename to CutList.Core/Nesting/MultiBinEngine.cs index e4ead14..757ee23 100644 --- a/SawCut/Nesting/MultiBinEngine.cs +++ b/CutList.Core/Nesting/MultiBinEngine.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Linq; -namespace SawCut.Nesting +namespace CutList.Core.Nesting { public class MultiBinEngine : IEngine { diff --git a/SawCut/Nesting/Result.cs b/CutList.Core/Nesting/Result.cs similarity index 96% rename from SawCut/Nesting/Result.cs rename to CutList.Core/Nesting/Result.cs index 949593c..f288f6f 100644 --- a/SawCut/Nesting/Result.cs +++ b/CutList.Core/Nesting/Result.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace SawCut.Nesting +namespace CutList.Core.Nesting { public class Result { diff --git a/SawCut/Properties/AssemblyInfo.cs b/CutList.Core/Properties/AssemblyInfo.cs similarity index 93% rename from SawCut/Properties/AssemblyInfo.cs rename to CutList.Core/Properties/AssemblyInfo.cs index 36487f5..c3d55f8 100644 --- a/SawCut/Properties/AssemblyInfo.cs +++ b/CutList.Core/Properties/AssemblyInfo.cs @@ -4,11 +4,11 @@ using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. -[assembly: AssemblyTitle("SawCut")] +[assembly: AssemblyTitle("CutList.Core")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("SawCut")] +[assembly: AssemblyProduct("CutList.Core")] [assembly: AssemblyCopyright("Copyright © 2021")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] diff --git a/SawCut/Tolerance.cs b/CutList.Core/Tolerance.cs similarity index 92% rename from SawCut/Tolerance.cs rename to CutList.Core/Tolerance.cs index 2fdf874..419c2a4 100644 --- a/SawCut/Tolerance.cs +++ b/CutList.Core/Tolerance.cs @@ -1,6 +1,6 @@ using System; -namespace SawCut +namespace CutList.Core { public static class Tolerance { diff --git a/CutList.sln b/CutList.sln index d22aa41..adf2323 100644 --- a/CutList.sln +++ b/CutList.sln @@ -5,7 +5,7 @@ VisualStudioVersion = 16.0.31402.337 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CutList", "CutList\CutList.csproj", "{3E82A1E3-07A8-40C4-ABC4-DF24C5120073}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SawCut", "SawCut\SawCut.csproj", "{3D873FF0-6930-4BCE-A5A9-DA5C20354DEE}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CutList.Core", "CutList.Core\CutList.Core.csproj", "{3D873FF0-6930-4BCE-A5A9-DA5C20354DEE}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/CutList/Controls/BinLayoutView.cs b/CutList/Controls/BinLayoutView.cs index 78b6254..2efb8a7 100644 --- a/CutList/Controls/BinLayoutView.cs +++ b/CutList/Controls/BinLayoutView.cs @@ -1,4 +1,4 @@ -using SawCut; +using CutList.Core; using System; using System.Drawing; using System.Drawing.Drawing2D; diff --git a/CutList/CutList.csproj b/CutList/CutList.csproj index b137d7d..4e65f81 100644 --- a/CutList/CutList.csproj +++ b/CutList/CutList.csproj @@ -27,7 +27,7 @@ - + diff --git a/CutList/Forms/BinFileSaver.cs b/CutList/Forms/BinFileSaver.cs index 8cc32fb..d96a2db 100644 --- a/CutList/Forms/BinFileSaver.cs +++ b/CutList/Forms/BinFileSaver.cs @@ -1,4 +1,4 @@ -using SawCut; +using CutList.Core; using System; using System.Collections.Generic; using System.Diagnostics; diff --git a/CutList/Forms/MainForm.cs b/CutList/Forms/MainForm.cs index 71daa6c..d125b26 100644 --- a/CutList/Forms/MainForm.cs +++ b/CutList/Forms/MainForm.cs @@ -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; diff --git a/CutList/Forms/ResultsForm.Designer.cs b/CutList/Forms/ResultsForm.Designer.cs index 9c654d5..fb29a32 100644 --- a/CutList/Forms/ResultsForm.Designer.cs +++ b/CutList/Forms/ResultsForm.Designer.cs @@ -131,7 +131,7 @@ // // binBindingSource // - this.binBindingSource.DataSource = typeof(SawCut.BinGroup); + this.binBindingSource.DataSource = typeof(CutList.Core.BinGroup); // // splitContainer1 // diff --git a/CutList/Forms/ResultsForm.cs b/CutList/Forms/ResultsForm.cs index 0cfdda9..bbcb48c 100644 --- a/CutList/Forms/ResultsForm.cs +++ b/CutList/Forms/ResultsForm.cs @@ -1,4 +1,4 @@ -using SawCut; +using CutList.Core; using System; using System.Collections.Generic; using System.Diagnostics; diff --git a/CutList/Helper.cs b/CutList/Helper.cs index ac5c4a6..686bf29 100644 --- a/CutList/Helper.cs +++ b/CutList/Helper.cs @@ -1,4 +1,4 @@ -using SawCut; +using CutList.Core; using System.Drawing; using System.Windows.Forms; diff --git a/CutList/Models/LengthItem.cs b/CutList/Models/LengthItem.cs index 2c46be1..6e3c2e3 100644 --- a/CutList/Models/LengthItem.cs +++ b/CutList/Models/LengthItem.cs @@ -1,5 +1,5 @@ using Newtonsoft.Json; -using SawCut; +using CutList.Core; using System; namespace CutList.Models diff --git a/CutList/Presenters/IMainView.cs b/CutList/Presenters/IMainView.cs index 2b4e253..a133ea4 100644 --- a/CutList/Presenters/IMainView.cs +++ b/CutList/Presenters/IMainView.cs @@ -1,5 +1,5 @@ using CutList.Models; -using SawCut; +using CutList.Core; using System.Collections.Generic; namespace CutList.Presenters diff --git a/CutList/Services/CutListService.cs b/CutList/Services/CutListService.cs index e8c197c..f0f3493 100644 --- a/CutList/Services/CutListService.cs +++ b/CutList/Services/CutListService.cs @@ -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 /// The available stock bins /// The cutting tool to use (determines kerf/spacing) /// Result containing the packing result with optimized bins and unused items, or error message - public Result Pack(List parts, List stockBins, Tool cuttingTool) + public Result Pack(List parts, List stockBins, Tool cuttingTool) { try { @@ -32,11 +32,11 @@ namespace CutList.Services engine.Spacing = cuttingTool.Kerf; var packResult = engine.Pack(binItems); - return Result.Success(packResult); + return Result.Success(packResult); } catch (Exception ex) { - return Result.Failure($"Packing failed: {ex.Message}"); + return Result.Failure($"Packing failed: {ex.Message}"); } }