You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
229 lines
5.1 KiB
229 lines
5.1 KiB
using GummingCommon;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Reflection;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace GummingEntity
|
|
{
|
|
public class StillicideEntity : ViewModelBase, ICloneable
|
|
{
|
|
private decimal _ClearPosition;
|
|
public decimal ClearPosition
|
|
{
|
|
get
|
|
{
|
|
return _ClearPosition;
|
|
}
|
|
set
|
|
{
|
|
_ClearPosition = value;
|
|
OnPropertyChanged("ClearPosition");
|
|
}
|
|
}
|
|
|
|
private decimal _ClearSpeed;
|
|
public decimal ClearSpeed
|
|
{
|
|
get
|
|
{
|
|
return _ClearSpeed;
|
|
}
|
|
set
|
|
{
|
|
_ClearSpeed = value;
|
|
OnPropertyChanged("ClearSpeed");
|
|
}
|
|
}
|
|
|
|
private decimal _InjectPosition;
|
|
public decimal InjectPosition
|
|
{
|
|
get
|
|
{
|
|
return _InjectPosition;
|
|
}
|
|
set
|
|
{
|
|
_InjectPosition = value;
|
|
OnPropertyChanged("InjectPosition");
|
|
}
|
|
}
|
|
|
|
private decimal _InjectSpeed;
|
|
public decimal InjectSpeed
|
|
{
|
|
get
|
|
{
|
|
return _InjectSpeed;
|
|
}
|
|
set
|
|
{
|
|
_InjectSpeed = value;
|
|
OnPropertyChanged("InjectSpeed");
|
|
}
|
|
}
|
|
|
|
private decimal _BackPosition;
|
|
public decimal BackPosition
|
|
{
|
|
get
|
|
{
|
|
return _BackPosition;
|
|
}
|
|
set
|
|
{
|
|
_BackPosition = value;
|
|
OnPropertyChanged("BackPosition");
|
|
}
|
|
}
|
|
|
|
private decimal _BackSpeed;
|
|
public decimal BackSpeed
|
|
{
|
|
get
|
|
{
|
|
return _BackSpeed;
|
|
}
|
|
set
|
|
{
|
|
_BackSpeed = value;
|
|
OnPropertyChanged("BackSpeed");
|
|
}
|
|
}
|
|
|
|
private decimal _FillSpeed;
|
|
public decimal FillSpeed
|
|
{
|
|
get
|
|
{
|
|
return _FillSpeed;
|
|
}
|
|
set
|
|
{
|
|
_FillSpeed = value;
|
|
OnPropertyChanged("FillSpeed");
|
|
}
|
|
}
|
|
/*
|
|
private int _Pr2ClearPosition;
|
|
public int Pr2ClearPosition
|
|
{
|
|
get
|
|
{
|
|
return _Pr2ClearPosition;
|
|
}
|
|
set
|
|
{
|
|
_Pr2ClearPosition = value;
|
|
OnPropertyChanged("Pr2ClearPosition");
|
|
}
|
|
}
|
|
|
|
private int _Pr2ClearSpeed;
|
|
public int Pr2ClearSpeed
|
|
{
|
|
get
|
|
{
|
|
return _Pr2ClearSpeed;
|
|
}
|
|
set
|
|
{
|
|
_Pr2ClearSpeed = value;
|
|
OnPropertyChanged("Pr2ClearSpeed");
|
|
}
|
|
}
|
|
|
|
private int _Pr2InjectPosition;
|
|
public int Pr2InjectPosition
|
|
{
|
|
get
|
|
{
|
|
return _Pr2InjectPosition;
|
|
}
|
|
set
|
|
{
|
|
_Pr2InjectPosition = value;
|
|
OnPropertyChanged("Pr2InjectPosition");
|
|
}
|
|
}
|
|
|
|
private int _Pr2InjectSpeed;
|
|
public int Pr2InjectSpeed
|
|
{
|
|
get
|
|
{
|
|
return _Pr2InjectSpeed;
|
|
}
|
|
set
|
|
{
|
|
_Pr2InjectSpeed = value;
|
|
OnPropertyChanged("Pr2InjectSpeed");
|
|
}
|
|
}
|
|
|
|
private int _Pr2BackPosition;
|
|
public int Pr2BackPosition
|
|
{
|
|
get
|
|
{
|
|
return _Pr2BackPosition;
|
|
}
|
|
set
|
|
{
|
|
_Pr2BackPosition = value;
|
|
OnPropertyChanged("Pr2BackPosition");
|
|
}
|
|
}
|
|
|
|
private int _Pr2BackSpeed;
|
|
public int Pr2BackSpeed
|
|
{
|
|
get
|
|
{
|
|
return _Pr2BackSpeed;
|
|
}
|
|
set
|
|
{
|
|
_Pr2BackSpeed = value;
|
|
OnPropertyChanged("Pr2BackSpeed");
|
|
}
|
|
}
|
|
|
|
private int _Pr2FillSpeed;
|
|
public int Pr2FillSpeed
|
|
{
|
|
get
|
|
{
|
|
return _Pr2FillSpeed;
|
|
}
|
|
set
|
|
{
|
|
_Pr2FillSpeed = value;
|
|
OnPropertyChanged("Pr2FillSpeed");
|
|
}
|
|
}*/
|
|
|
|
public object Clone()
|
|
{
|
|
StillicideEntity obj = new StillicideEntity();
|
|
Type t = this.GetType();
|
|
PropertyInfo[] properties = t.GetProperties();
|
|
foreach (PropertyInfo pi in properties)
|
|
{
|
|
if (pi.CanWrite)
|
|
{
|
|
object value = pi.GetValue(this, null);
|
|
if (obj.GetType().GetProperty(pi.Name) != null)
|
|
{
|
|
pi.SetValue(obj, value, null);
|
|
}
|
|
}
|
|
}
|
|
return obj;
|
|
}
|
|
}
|
|
}
|