Beispiel #1
0
 private static void iterDeviceItem(NodeHandler handler, IDeviceItemAggregation items)
 {
     foreach (IDeviceItem item in items)
     {
         handleDeviceItem(handler, item);
     }
 }
Beispiel #2
0
 private void buildDeviceItemTree(TreeNodeCollection nodes, IDeviceItemAggregation items)
 {
     foreach (IDeviceItem item in items)
     {
         HmiTarget hmi = item as HmiTarget;
         if (hmi != null)
         {
             TreeNode itemNode = new HmiTargetNode(item.Name, hmi);
             nodes.Add(itemNode);
         }
         else
         {
             buildDeviceItemTree(nodes, item.DeviceItems);
         }
     }
 }
Beispiel #3
0
 private void buildDeviceItemTree(TreeNodeCollection nodes, IDeviceItemAggregation items)
 {
     foreach (IDeviceItem item in items)
     {
         HmiTarget hmi = item as HmiTarget;
         if (hmi != null)
         {
             TreeNode itemNode = new HmiTargetNode(item.Name, hmi);
             nodes.Add(itemNode);
         }
         else
         {
             buildDeviceItemTree(nodes, item.DeviceItems);
         }
     }
 }
Beispiel #4
0
 private static void iterDeviceItem(NodeHandler handler, IDeviceItemAggregation items)
 {
     foreach (IDeviceItem item in items)
     {
         handleDeviceItem(handler, item);
     }
 }