Free cookie consent management tool by TermsFeed Policy Generator

Changeset 15620


Ignore:
Timestamp:
01/17/18 00:14:37 (7 years ago)
Author:
swagner
Message:

#2877: Improved groups/slaves treeview of Hive Administrator

  • corrected showing number of contained slaves for each group
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2877_HiveImprovements/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ResourcesView.cs

    r15613 r15620  
    181181                        orderby r.Name
    182182                        select r;
    183       foreach (var s in childSlaves)
     183      var childSlavesCount = 0;
     184      foreach (var s in childSlaves) {
    184185        node.Nodes.Add(CreateTreeNodeFromResource(s));
    185       var childSlavesCount = childSlaves.Count();
     186        childSlavesCount++;
     187      }
    186188      if (childSlavesCount > 0)
    187         node.Text += "   [" + childSlavesCount.ToString() + "]";
     189        node.Text = group.Name + "   [" + childSlavesCount.ToString() + "]";
    188190    }
    189191
Note: See TracChangeset for help on using the changeset viewer.