Compare commits

...

2 Commits

Author SHA1 Message Date
AJ
8fb1f35396 Changed target framework to version 4.8 2023-03-02 19:57:55 -05:00
AJ
ca978a1dcc Made objects serializable so they work with winforms UI 2023-03-02 19:56:19 -05:00
12 changed files with 24 additions and 10 deletions

View File

@@ -9,7 +9,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>PepLib.Dxf</RootNamespace> <RootNamespace>PepLib.Dxf</RootNamespace>
<AssemblyName>PepLib.Dxf</AssemblyName> <AssemblyName>PepLib.Dxf</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> <TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<TargetFrameworkProfile /> <TargetFrameworkProfile />
</PropertyGroup> </PropertyGroup>

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.6.1"/> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup> </startup>
</configuration> </configuration>

View File

@@ -9,7 +9,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>PepLib.UI</RootNamespace> <RootNamespace>PepLib.UI</RootNamespace>
<AssemblyName>PepLib.UI</AssemblyName> <AssemblyName>PepLib.UI</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> <TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<TargetFrameworkProfile /> <TargetFrameworkProfile />

View File

@@ -19,7 +19,7 @@ namespace PepLib.UI.Properties {
// class via a tool like ResGen or Visual Studio. // class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen // To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project. // with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources { internal class Resources {

View File

@@ -12,7 +12,7 @@ namespace PepLib.UI.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.8.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.5.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));

View File

@@ -1,7 +1,7 @@
 
Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15 # Visual Studio Version 17
VisualStudioVersion = 15.0.28307.329 VisualStudioVersion = 17.5.33424.131
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PepLib", "PepLib\PepLib.csproj", "{22360453-B878-49FA-A5DC-0D9C577DE902}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PepLib", "PepLib\PepLib.csproj", "{22360453-B878-49FA-A5DC-0D9C577DE902}"
EndProject EndProject

View File

@@ -1,5 +1,8 @@
namespace PepLib using System;
namespace PepLib
{ {
[Serializable]
public class Machine public class Machine
{ {
public int Id { get; set; } public int Id { get; set; }

View File

@@ -1,5 +1,8 @@
namespace PepLib using System;
namespace PepLib
{ {
[Serializable]
public class Material public class Material
{ {
public int Id { get; set; } public int Id { get; set; }

View File

@@ -2,6 +2,7 @@
namespace PepLib namespace PepLib
{ {
[Serializable]
public class Part : IMovable public class Part : IMovable
{ {
private Loop baseLoop; private Loop baseLoop;

View File

@@ -4,6 +4,7 @@ using System.Linq;
namespace PepLib namespace PepLib
{ {
[Serializable]
public class Plate : IMovable public class Plate : IMovable
{ {
public Plate() public Plate()

View File

@@ -1,5 +1,8 @@
namespace PepLib using System;
namespace PepLib
{ {
[Serializable]
public class Size public class Size
{ {
public Size(double height, double width) public Size(double height, double width)

View File

@@ -1,6 +1,9 @@
 
using System;
namespace PepLib namespace PepLib
{ {
[Serializable]
public class Spacing public class Spacing
{ {
public Spacing() public Spacing()