This commit is contained in:
AJ
2021-10-07 09:12:38 -04:00
parent 5af1daac11
commit fc557d2500
22 changed files with 45 additions and 62 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<configuration> <configuration>
<startup> <startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup> </startup>
</configuration> </configuration>

View File

@@ -5,7 +5,7 @@ namespace CutList.Forms
{ {
public static class DataGridViewExtensions public static class DataGridViewExtensions
{ {
static readonly StringFormat CenterVerticallyFormat = new StringFormat private static readonly StringFormat CenterVerticallyFormat = new StringFormat
{ {
Alignment = StringAlignment.Far, Alignment = StringAlignment.Far,
LineAlignment = StringAlignment.Center LineAlignment = StringAlignment.Center
@@ -25,7 +25,6 @@ namespace CutList.Forms
headerBounds, headerBounds,
CenterVerticallyFormat); CenterVerticallyFormat);
}; };
} }
} }
} }

View File

@@ -2,11 +2,9 @@
using Newtonsoft.Json; using Newtonsoft.Json;
using SawCut; using SawCut;
using SawCut.Nesting; using SawCut.Nesting;
using SimpleExpressionEvaluator;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Diagnostics;
using System.Drawing; using System.Drawing;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
@@ -278,7 +276,6 @@ namespace CutList.Forms
private void dataGridView2_CellContentClick(object sender, DataGridViewCellEventArgs e) private void dataGridView2_CellContentClick(object sender, DataGridViewCellEventArgs e)
{ {
} }
private void dataGridView2_CellEndEdit(object sender, DataGridViewCellEventArgs e) private void dataGridView2_CellEndEdit(object sender, DataGridViewCellEventArgs e)

View File

@@ -1,14 +1,9 @@
using SawCut; using SawCut;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics; using System.Diagnostics;
using System.Drawing;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace CutList.Forms namespace CutList.Forms

View File

@@ -4,7 +4,7 @@ using System.Windows.Forms;
namespace CutList namespace CutList
{ {
static class Helper internal static class Helper
{ {
public static double GetLengthInches(TextBox tb) public static double GetLengthInches(TextBox tb)
{ {
@@ -20,7 +20,6 @@ namespace CutList
var x = ArchUnits.ParseToInches(tb.Text); var x = ArchUnits.ParseToInches(tb.Text);
tb.ForeColor = SystemColors.WindowText; tb.ForeColor = SystemColors.WindowText;
return x; return x;
} }
catch catch
{ {

View File

@@ -1,18 +1,15 @@
using System; using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
namespace CutList namespace CutList
{ {
static class Program internal static class Program
{ {
/// <summary> /// <summary>
/// The main entry point for the application. /// The main entry point for the application.
/// </summary> /// </summary>
[STAThread] [STAThread]
static void Main() private static void Main()
{ {
Application.EnableVisualStyles(); Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false); Application.SetCompatibleTextRenderingDefault(false);

View File

@@ -1,5 +1,4 @@
using System.Reflection; using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following // General Information about an assembly is controlled through the following

View File

@@ -1,7 +1,6 @@
using System; using System;
using System.Text.RegularExpressions;
using System.Text; using System.Text;
using SawCut; using System.Text.RegularExpressions;
namespace SawCut namespace SawCut
{ {

View File

@@ -1,7 +1,7 @@
using System; using System;
using System.Text.RegularExpressions;
using System.Text;
using System.Linq; using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace SawCut namespace SawCut
{ {

View File

@@ -1,5 +1,4 @@
using System; using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq; using System.Linq;
namespace SawCut.Nesting namespace SawCut.Nesting

View File

@@ -1,5 +1,4 @@
using System.Reflection; using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following // General Information about an assembly is controlled through the following