Free cookie consent management tool by TermsFeed Policy Generator

Changeset 831


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

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

Location:
trunk/sources/HeuristicLab.Hive.Server.Console
Files:
3 edited

Legend:

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

    r799 r831  
    6060        ServiceLocator.Port = this.tbPort.Text;
    6161
    62         IClientManager clientManager =
    63           ServiceLocator.GetClientManager();
    64 
    65         List<ClientInfo> clients =
    66           clientManager.GetAllClients();
    67 
    6862        this.Visible = false;
    6963        information = new HiveServerManagementConsole();
  • trunk/sources/HeuristicLab.Hive.Server.Console/HiveServerManagementConsole.Designer.cs

    r794 r831  
    3030      this.tpClientControl = new System.Windows.Forms.TabPage();
    3131      this.scClientControl = new System.Windows.Forms.SplitContainer();
    32       this.treeView1 = new System.Windows.Forms.TreeView();
     32      this.tvClientControl = new System.Windows.Forms.TreeView();
    3333      this.listView1 = new System.Windows.Forms.ListView();
    3434      this.tpJobControl = new System.Windows.Forms.TabPage();
    3535      this.scJobControl = new System.Windows.Forms.SplitContainer();
    36       this.treeView3 = new System.Windows.Forms.TreeView();
     36      this.tvJobControl = new System.Windows.Forms.TreeView();
    3737      this.listView3 = new System.Windows.Forms.ListView();
    3838      this.tpUserControl = new System.Windows.Forms.TabPage();
    3939      this.scUserControl = new System.Windows.Forms.SplitContainer();
    40       this.treeView4 = new System.Windows.Forms.TreeView();
     40      this.tvUserControl = new System.Windows.Forms.TreeView();
    4141      this.listView4 = new System.Windows.Forms.ListView();
    4242      this.treeView2 = new System.Windows.Forms.TreeView();
     
    7979      //
    8080      this.closeToolStripMenuItem.Name = "closeToolStripMenuItem";
    81       this.closeToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
     81      this.closeToolStripMenuItem.Size = new System.Drawing.Size(111, 22);
    8282      this.closeToolStripMenuItem.Text = "Close";
    8383      this.closeToolStripMenuItem.Click += new System.EventHandler(this.close_Click);
     
    115115      // scClientControl.Panel1
    116116      //
    117       this.scClientControl.Panel1.Controls.Add(this.treeView1);
     117      this.scClientControl.Panel1.Controls.Add(this.tvClientControl);
    118118      //
    119119      // scClientControl.Panel2
     
    124124      this.scClientControl.TabIndex = 0;
    125125      //
    126       // treeView1
    127       //
    128       this.treeView1.Dock = System.Windows.Forms.DockStyle.Fill;
    129       this.treeView1.Location = new System.Drawing.Point(0, 0);
    130       this.treeView1.Name = "treeView1";
    131       this.treeView1.Size = new System.Drawing.Size(139, 346);
    132       this.treeView1.TabIndex = 0;
     126      // tvClientControl
     127      //
     128      this.tvClientControl.Dock = System.Windows.Forms.DockStyle.Fill;
     129      this.tvClientControl.Location = new System.Drawing.Point(0, 0);
     130      this.tvClientControl.Name = "tvClientControl";
     131      this.tvClientControl.Size = new System.Drawing.Size(139, 346);
     132      this.tvClientControl.TabIndex = 0;
    133133      //
    134134      // listView1
     
    160160      // scJobControl.Panel1
    161161      //
    162       this.scJobControl.Panel1.Controls.Add(this.treeView3);
     162      this.scJobControl.Panel1.Controls.Add(this.tvJobControl);
    163163      //
    164164      // scJobControl.Panel2
     
    169169      this.scJobControl.TabIndex = 1;
    170170      //
    171       // treeView3
    172       //
    173       this.treeView3.Dock = System.Windows.Forms.DockStyle.Fill;
    174       this.treeView3.Location = new System.Drawing.Point(0, 0);
    175       this.treeView3.Name = "treeView3";
    176       this.treeView3.Size = new System.Drawing.Size(139, 346);
    177       this.treeView3.TabIndex = 2;
     171      // tvJobControl
     172      //
     173      this.tvJobControl.Dock = System.Windows.Forms.DockStyle.Fill;
     174      this.tvJobControl.Location = new System.Drawing.Point(0, 0);
     175      this.tvJobControl.Name = "tvJobControl";
     176      this.tvJobControl.Size = new System.Drawing.Size(139, 346);
     177      this.tvJobControl.TabIndex = 2;
    178178      //
    179179      // listView3
     
    205205      // scUserControl.Panel1
    206206      //
    207       this.scUserControl.Panel1.Controls.Add(this.treeView4);
     207      this.scUserControl.Panel1.Controls.Add(this.tvUserControl);
    208208      //
    209209      // scUserControl.Panel2
     
    214214      this.scUserControl.TabIndex = 1;
    215215      //
    216       // treeView4
    217       //
    218       this.treeView4.Dock = System.Windows.Forms.DockStyle.Fill;
    219       this.treeView4.Location = new System.Drawing.Point(0, 0);
    220       this.treeView4.Name = "treeView4";
    221       this.treeView4.Size = new System.Drawing.Size(139, 346);
    222       this.treeView4.TabIndex = 1;
     216      // tvUserControl
     217      //
     218      this.tvUserControl.Dock = System.Windows.Forms.DockStyle.Fill;
     219      this.tvUserControl.Location = new System.Drawing.Point(0, 0);
     220      this.tvUserControl.Name = "tvUserControl";
     221      this.tvUserControl.Size = new System.Drawing.Size(139, 346);
     222      this.tvUserControl.TabIndex = 1;
    223223      //
    224224      // listView4
     
    290290    private System.Windows.Forms.SplitContainer scClientControl;
    291291    private System.Windows.Forms.TabPage tpUserControl;
    292     private System.Windows.Forms.TreeView treeView1;
     292    private System.Windows.Forms.TreeView tvClientControl;
    293293    private System.Windows.Forms.ListView listView1;
    294294    private System.Windows.Forms.SplitContainer scJobControl;
     
    297297    private System.Windows.Forms.TreeView treeView2;
    298298    private System.Windows.Forms.ListView listView2;
    299     private System.Windows.Forms.TreeView treeView3;
    300     private System.Windows.Forms.TreeView treeView4;
     299    private System.Windows.Forms.TreeView tvJobControl;
     300    private System.Windows.Forms.TreeView tvUserControl;
    301301    private System.Windows.Forms.ListView listView4;
    302302  }
  • 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.