Made objects serializable so they work with winforms UI
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
namespace PepLib
|
||||
using System;
|
||||
|
||||
namespace PepLib
|
||||
{
|
||||
[Serializable]
|
||||
public class Machine
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
namespace PepLib
|
||||
using System;
|
||||
|
||||
namespace PepLib
|
||||
{
|
||||
[Serializable]
|
||||
public class Material
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace PepLib
|
||||
{
|
||||
[Serializable]
|
||||
public class Part : IMovable
|
||||
{
|
||||
private Loop baseLoop;
|
||||
|
||||
@@ -4,6 +4,7 @@ using System.Linq;
|
||||
|
||||
namespace PepLib
|
||||
{
|
||||
[Serializable]
|
||||
public class Plate : IMovable
|
||||
{
|
||||
public Plate()
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
namespace PepLib
|
||||
using System;
|
||||
|
||||
namespace PepLib
|
||||
{
|
||||
[Serializable]
|
||||
public class Size
|
||||
{
|
||||
public Size(double height, double width)
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
|
||||
using System;
|
||||
|
||||
namespace PepLib
|
||||
{
|
||||
[Serializable]
|
||||
public class Spacing
|
||||
{
|
||||
public Spacing()
|
||||
|
||||
Reference in New Issue
Block a user