- Timestamp:
- 12/04/08 16:47:46 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.Console/HiveServerManagementConsole.cs
r844 r904 30 30 using HeuristicLab.Hive.Contracts.Interfaces; 31 31 using HeuristicLab.Hive.Contracts.BusinessObjects; 32 using HeuristicLab.Hive.Contracts; 32 33 33 34 namespace HeuristicLab.Hive.Server.Console { … … 39 40 public event closeForm closeFormEvent; 40 41 41 List<ClientGroup> clients = null;42 List<Job> jobs = null;43 List<UserGroup> userGroups = null;42 ResponseList<ClientGroup> clients = null; 43 ResponseList<Job> jobs = null; 44 ResponseList<UserGroup> userGroups = null; 44 45 45 46 public HiveServerManagementConsole() { … … 64 65 lvClientControl.Items.Clear(); 65 66 int count = 0; 66 foreach (ClientGroup cg in clients ) {67 foreach (ClientGroup cg in clients.List) { 67 68 tvClientControl.Nodes.Add(cg.Name); 68 69 ListViewGroup lvg = new ListViewGroup(cg.Name, HorizontalAlignment.Left); 69 lvClientControl.Groups.Add(lvg); 70 foreach (ClientInfo ci in clientManager.GetAllClients()) { 70 foreach (ClientInfo ci in clientManager.GetAllClients().List) { 71 71 tvClientControl.Nodes[tvClientControl.Nodes.Count - 1].Nodes.Add(ci.Name); 72 lvClientControl. Groups[lvClientControl.Groups.Count].Items.Add(new ListViewItem(ci.Name, count));72 lvClientControl.Items.Add(new ListViewItem(ci.Name, count, lvg)); 73 73 count = (count + 1) % 3; 74 74 } 75 lvClientControl.Groups.Add(lvg); 75 76 } 76 foreach (Job job in jobs ) {77 foreach (Job job in jobs.List) { 77 78 tvJobControl.Nodes.Add(job.JobId.ToString()); 78 79 } 79 foreach (UserGroup ug in userGroups ) {80 foreach (UserGroup ug in userGroups.List) { 80 81 tvUserControl.Nodes.Add(ug.UserGroupId.ToString()); 81 82 }
Note: See TracChangeset
for help on using the changeset viewer.