Beispiel #1
0
 /// <summary>
 /// 根据附加的筛选条件搜索该分类下的设备。
 /// </summary>
 /// <param name="filters">筛选条件。</param>
 /// <param name="containsChildren">是否包含所有下级分类中的设备。true:返回当前分类及所有下级分类中关联的设备;false:仅当前分类直接隶属的设备。</param>
 /// <returns></returns>
 public DeviceCollection GetDevices(AC.Base.DeviceSearchs.DeviceFilterCollection filters, bool containsChildren)
 {
     DeviceSearchs.DeviceSearch _Search = new DeviceSearchs.DeviceSearch(this.Application);
     _Search.Filters.Add(new DeviceSearchs.ClassifyFilter(this, containsChildren));
     if (filters != null && filters.Count > 0)
     {
         _Search.Filters.Add(filters);
     }
     return(_Search.Search());
 }
Beispiel #2
0
 /// <summary>
 /// 获取属于该分类的设备。
 /// </summary>
 /// <returns></returns>
 public DeviceCollection GetDevices()
 {
     DeviceSearchs.DeviceSearch _Search = new DeviceSearchs.DeviceSearch(this.Application);
     _Search.Filters.Add(new DeviceSearchs.ClassifyFilter(this, false));
     return(_Search.Search());
 }