LocalLimitArea.cs
688 字节
using OnlineStore.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DeviceLibrary.CtuDeviceLib
{
public class LocalLimitArea
{
public string Name { get; set; }
public List<uint> PointCodes { get; set; }
public bool IsInArea(List<uint> pointCodes)
{
if (PointCodes == null || pointCodes.Count == 0) return false;
foreach (uint code in pointCodes)
{
if (PointCodes.Contains(code))
{
return true;
}
}
return false;
}
}
}