Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/04/08 16:47:46 (16 years ago)
Author:
aleitner
Message:

change design from new interfaces, added ListViewItems (#380)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.Console/HiveServerManagementConsole.cs

    r844 r904  
    3030using HeuristicLab.Hive.Contracts.Interfaces;
    3131using HeuristicLab.Hive.Contracts.BusinessObjects;
     32using HeuristicLab.Hive.Contracts;
    3233
    3334namespace HeuristicLab.Hive.Server.Console {
     
    3940    public event closeForm closeFormEvent;
    4041
    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;
    4445
    4546    public HiveServerManagementConsole() {
     
    6465      lvClientControl.Items.Clear();
    6566      int count = 0;
    66       foreach (ClientGroup cg in clients) {
     67      foreach (ClientGroup cg in clients.List) {
    6768        tvClientControl.Nodes.Add(cg.Name);
    6869        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) {
    7171          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));
    7373          count = (count + 1) % 3;
    7474        }
     75        lvClientControl.Groups.Add(lvg);
    7576      }
    76       foreach (Job job in jobs) {
     77      foreach (Job job in jobs.List) {
    7778        tvJobControl.Nodes.Add(job.JobId.ToString());
    7879      }
    79       foreach (UserGroup ug in userGroups) {
     80      foreach (UserGroup ug in userGroups.List) {
    8081        tvUserControl.Nodes.Add(ug.UserGroupId.ToString());
    8182      }
Note: See TracChangeset for help on using the changeset viewer.