private void WriteHostLanes(StringBuilder matrix, LaneTreeNode node, IEnumerable <DBHost> hosts, List <int> hostlane_order) { node.ForEach(new Action <LaneTreeNode> (delegate(LaneTreeNode target) { if (target.Children.Count != 0) { return; } if (target.HostLanes.Count == 0) { matrix.Append("<td>-</td>"); } else { foreach (DBHostLane hl in target.HostLanes) { hostlane_order.Add(hl.id); WriteHostLane(matrix, hosts, hl); } } })); }
private void WriteHostLanes(StringBuilder matrix, LaneTreeNode node, IEnumerable <DBHost> hosts, List <int> hostlane_order) { node.ForEach(new Action <LaneTreeNode> (delegate(LaneTreeNode target) { if (target.Children.Count != 0) { return; } if (target.HostLanes.Count == 0) { matrix.Append("<td>-</td>"); } else { foreach (DBHostLane hl in target.HostLanes) { hostlane_order.Add(hl.id); matrix.AppendFormat("<td><a href='ViewTable.aspx?lane_id={1}&host_id={2}' class='{3}'>{0}</a></td>", Utils.FindHost(hosts, hl.host_id).host, hl.lane_id, hl.host_id, hl.enabled ? "enabled-hostlane" : "disabled-hostlane"); } } })); }
private void WriteHostLanes (StringBuilder matrix, LaneTreeNode node, IEnumerable<DBHost> hosts, List<int> hostlane_order) { node.ForEach (new Action<LaneTreeNode> (delegate (LaneTreeNode target) { if (target.Children.Count != 0) return; if (target.HostLanes.Count == 0) { matrix.Append ("<td>-</td>"); } else { foreach (DBHostLane hl in target.HostLanes) { hostlane_order.Add (hl.id); matrix.AppendFormat ("<td><a href='ViewTable.aspx?lane_id={1}&host_id={2}' class='{3}'>{0}</a></td>", Utils.FindHost (hosts, hl.host_id).host, hl.lane_id, hl.host_id, hl.enabled ? "enabled-hostlane" : "disabled-hostlane"); } } })); }
private void WriteHostLanes (StringBuilder matrix, LaneTreeNode node, IEnumerable<DBHost> hosts, List<int> hostlane_order) { node.ForEach (new Action<LaneTreeNode> (delegate (LaneTreeNode target) { if (target.Children.Count != 0) return; if (target.HostLanes.Count == 0) { matrix.Append ("<td>-</td>"); } else { foreach (DBHostLane hl in target.HostLanes) { hostlane_order.Add (hl.id); WriteHostLane (matrix, hosts, hl); } } })); }