- Timestamp:
- 11/27/08 17:14:46 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.Console/HiveServerManagementConsole.cs
r834 r844 42 42 List<Job> jobs = null; 43 43 List<UserGroup> userGroups = null; 44 44 45 45 public HiveServerManagementConsole() { 46 46 InitializeComponent(); 47 addItems(); 48 } 47 49 50 private void addItems() { 48 51 IClientManager clientManager = 49 ServiceLocator.GetClientManager();52 ServiceLocator.GetClientManager(); 50 53 51 54 IJobManager jobManager = … … 55 58 ServiceLocator.GetUserRoleManager(); 56 59 57 // clients = clientManager.GetAllClientGroups(); 60 clientManager.GetAllUpTimeStatistics(); 61 clients = clientManager.GetAllClientGroups(); 58 62 jobs = jobManager.GetAllJobs(); 59 63 userGroups = userRoleManager.GetAllUserGroups(); 60 // foreach (ClientGroup cg in clients) { 61 // tvClientControl.Nodes.Add(cg.Name); 64 lvClientControl.Items.Clear(); 65 int count = 0; 66 foreach (ClientGroup cg in clients) { 67 tvClientControl.Nodes.Add(cg.Name); 68 ListViewGroup lvg = new ListViewGroup(cg.Name, HorizontalAlignment.Left); 69 lvClientControl.Groups.Add(lvg); 62 70 foreach (ClientInfo ci in clientManager.GetAllClients()) { 63 tvClientControl.SelectedNode.Nodes.Add(ci.Name); 71 tvClientControl.Nodes[tvClientControl.Nodes.Count - 1].Nodes.Add(ci.Name); 72 lvClientControl.Groups[lvClientControl.Groups.Count].Items.Add(new ListViewItem(ci.Name, count)); 73 count = (count + 1) % 3; 64 74 } 65 //}75 } 66 76 foreach (Job job in jobs) { 67 77 tvJobControl.Nodes.Add(job.JobId.ToString()); … … 70 80 tvUserControl.Nodes.Add(ug.UserGroupId.ToString()); 71 81 } 72 73 82 } 74 83
Note: See TracChangeset
for help on using the changeset viewer.