Updates imports across the codebase to reference the new namespaces for Formatting utilities, Document, BinFileSaver, and Toolbox. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
29 lines
632 B
C#
29 lines
632 B
C#
using CutList.Core.Formatting;
|
|
|
|
namespace CutList
|
|
{
|
|
internal static class Helper
|
|
{
|
|
public static double GetLengthInches(TextBox tb)
|
|
{
|
|
try
|
|
{
|
|
double d;
|
|
|
|
if (double.TryParse(tb.Text, out d))
|
|
{
|
|
return d;
|
|
}
|
|
|
|
var x = ArchUnits.ParseToInches(tb.Text);
|
|
tb.ForeColor = SystemColors.WindowText;
|
|
return x;
|
|
}
|
|
catch
|
|
{
|
|
tb.ForeColor = Color.Red;
|
|
return double.NaN;
|
|
}
|
|
}
|
|
}
|
|
} |