using System;
using System.Collections.ObjectModel;
using System.Xml.Schema;
using System.Xml.Serialization;
using QC.CTDS.DM.DataStructures.FormatDescriptorStructure;

namespace QC.CTDS.DM.DataStructures.LimitDescriptorDataStructure;

[Serializable]
public class Limits : BindableObject
{
	private ObservableCollection<Limit> lowLimit;

	private ObservableCollection<Limit> highLimit;

	[XmlElement("Low", Form = XmlSchemaForm.Unqualified)]
	public ObservableCollection<Limit> LowLimit
	{
		get
		{
			return lowLimit;
		}
		set
		{
			lowLimit = value;
		}
	}

	[XmlElement("High", Form = XmlSchemaForm.Unqualified)]
	public ObservableCollection<Limit> HighLimit
	{
		get
		{
			return highLimit;
		}
		set
		{
			highLimit = value;
		}
	}

	public Limits()
	{
	}

	public Limits(Limits limitSet)
		: base(limitSet)
	{
		highLimit = new ObservableCollection<Limit>();
		lowLimit = new ObservableCollection<Limit>();
		foreach (Limit item in limitSet.HighLimit)
		{
			highLimit.Add(new Limit(item));
		}
		foreach (Limit item2 in limitSet.LowLimit)
		{
			lowLimit.Add(new Limit(item2));
		}
	}
}
