33 lines
939 B
C#
33 lines
939 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace VisionCommon {
|
|
public class CamCalibrationRecipe : ICloneCopy<CamCalibrationRecipe> {
|
|
public bool Used { get; set; } = false;
|
|
[Browsable(false)]
|
|
public bool Enabled { get; set; } = false;
|
|
[Browsable(false)]
|
|
public bool Loaded { get; set; } = false;
|
|
|
|
public CamCalibrationRecipe Clone() {
|
|
return ((ICloneable)this).Clone() as CamCalibrationRecipe;
|
|
}
|
|
|
|
public void CopyTo(CamCalibrationRecipe target) {
|
|
target.Used = this.Used;
|
|
target.Enabled = this.Enabled;
|
|
target.Loaded = this.Loaded;
|
|
}
|
|
|
|
object ICloneable.Clone() {
|
|
var cloneObj = new CamCalibrationRecipe();
|
|
CopyTo(cloneObj);
|
|
return cloneObj;
|
|
}
|
|
}
|
|
}
|