Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/26/08 16:58:13 (16 years ago)
Author:
aleitner
Message:

Integrated interfaces to the server (Client, User, Jobs) (#380)

File:
1 edited

Legend:

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

    r794 r831  
    2828using System.Text;
    2929using System.Windows.Forms;
     30using HeuristicLab.Hive.Contracts.Interfaces;
     31using HeuristicLab.Hive.Contracts.BusinessObjects;
    3032
    3133namespace HeuristicLab.Hive.Server.Console {
     
    3739    public event closeForm closeFormEvent;
    3840
     41    List<ClientGroup> clients = null;
     42    List<Job> jobs = null;
     43    List<UserGroup> userGroups = null;
     44   
    3945    public HiveServerManagementConsole() {
    4046      InitializeComponent();
     47
     48      IClientManager clientManager =
     49        ServiceLocator.GetClientManager();
     50
     51      IJobManager jobManager =
     52        ServiceLocator.GetJobManager();
     53
     54      IUserRoleManager userRoleManager =
     55        ServiceLocator.GetUserRoleManager();
     56
     57     // clients = clientManager.GetAllClientGroups();
     58      jobs = jobManager.GetAllJobs();
     59      userGroups = userRoleManager.GetAllUserGroups();
     60     // foreach (ClientGroup cg in clients) {
     61     //   tvClientControl.Nodes.Add(cg.Name);
     62        foreach (ClientInfo ci in clientManager.GetAllClients()) {
     63          tvClientControl.SelectedNode.Nodes.Add(ci.name);
     64        }
     65     // }
     66      foreach (Job job in jobs) {
     67        tvJobControl.Nodes.Add(job.JobId.ToString());
     68      }
     69      foreach (UserGroup ug in userGroups) {
     70        tvUserControl.Nodes.Add(ug.UserGroupId.ToString());
     71      }
     72
    4173    }
    4274
Note: See TracChangeset for help on using the changeset viewer.