public String[] GetDescription(String logicalName,
ObjectType type, String description)
{
lock (codes)
{
if (codes.Count == 0)
{
ReadStandardObisInfo(codes);
}
}
List<String> list = new List<String>();
bool all = string.IsNullOrEmpty(logicalName);
foreach (GXStandardObisCode it in codes.Find(logicalName, type))
{
if (!string.IsNullOrEmpty(description)
&& !it.Description.ToLower().Contains(description.ToLower()))
{
continue;
}
if (all)
{
list.Add("A=" + it.OBIS[0] + ", B=" + it.OBIS[1]
+ ", C=" + it.OBIS[2] + ", D=" + it.OBIS[3]
+ ", E=" + it.OBIS[4] + ", F=" + it.OBIS[5]
+ "\r\n" + it.Description);
}
else
{
list.Add(it.Description);
}
}
return list.ToArray();
}
/// <summary>