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 class Machine
|
||||||
{
|
{
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
|||||||
@@ -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; }
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace PepLib
|
namespace PepLib
|
||||||
{
|
{
|
||||||
|
[Serializable]
|
||||||
public class Part : IMovable
|
public class Part : IMovable
|
||||||
{
|
{
|
||||||
private Loop baseLoop;
|
private Loop baseLoop;
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ using System.Linq;
|
|||||||
|
|
||||||
namespace PepLib
|
namespace PepLib
|
||||||
{
|
{
|
||||||
|
[Serializable]
|
||||||
public class Plate : IMovable
|
public class Plate : IMovable
|
||||||
{
|
{
|
||||||
public Plate()
|
public Plate()
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
|
|
||||||
|
using System;
|
||||||
|
|
||||||
namespace PepLib
|
namespace PepLib
|
||||||
{
|
{
|
||||||
|
[Serializable]
|
||||||
public class Spacing
|
public class Spacing
|
||||||
{
|
{
|
||||||
public Spacing()
|
public Spacing()
|
||||||
|
|||||||
Reference in New Issue
Block a user