Changeset 831 for trunk/sources
- Timestamp:
- 11/26/08 16:58:13 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Hive.Server.Console
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.Console/HiveServerConsole.cs
r799 r831 60 60 ServiceLocator.Port = this.tbPort.Text; 61 61 62 IClientManager clientManager =63 ServiceLocator.GetClientManager();64 65 List<ClientInfo> clients =66 clientManager.GetAllClients();67 68 62 this.Visible = false; 69 63 information = new HiveServerManagementConsole(); -
trunk/sources/HeuristicLab.Hive.Server.Console/HiveServerManagementConsole.Designer.cs
r794 r831 30 30 this.tpClientControl = new System.Windows.Forms.TabPage(); 31 31 this.scClientControl = new System.Windows.Forms.SplitContainer(); 32 this.t reeView1= new System.Windows.Forms.TreeView();32 this.tvClientControl = new System.Windows.Forms.TreeView(); 33 33 this.listView1 = new System.Windows.Forms.ListView(); 34 34 this.tpJobControl = new System.Windows.Forms.TabPage(); 35 35 this.scJobControl = new System.Windows.Forms.SplitContainer(); 36 this.t reeView3= new System.Windows.Forms.TreeView();36 this.tvJobControl = new System.Windows.Forms.TreeView(); 37 37 this.listView3 = new System.Windows.Forms.ListView(); 38 38 this.tpUserControl = new System.Windows.Forms.TabPage(); 39 39 this.scUserControl = new System.Windows.Forms.SplitContainer(); 40 this.t reeView4= new System.Windows.Forms.TreeView();40 this.tvUserControl = new System.Windows.Forms.TreeView(); 41 41 this.listView4 = new System.Windows.Forms.ListView(); 42 42 this.treeView2 = new System.Windows.Forms.TreeView(); … … 79 79 // 80 80 this.closeToolStripMenuItem.Name = "closeToolStripMenuItem"; 81 this.closeToolStripMenuItem.Size = new System.Drawing.Size(1 52, 22);81 this.closeToolStripMenuItem.Size = new System.Drawing.Size(111, 22); 82 82 this.closeToolStripMenuItem.Text = "Close"; 83 83 this.closeToolStripMenuItem.Click += new System.EventHandler(this.close_Click); … … 115 115 // scClientControl.Panel1 116 116 // 117 this.scClientControl.Panel1.Controls.Add(this.t reeView1);117 this.scClientControl.Panel1.Controls.Add(this.tvClientControl); 118 118 // 119 119 // scClientControl.Panel2 … … 124 124 this.scClientControl.TabIndex = 0; 125 125 // 126 // t reeView1127 // 128 this.t reeView1.Dock = System.Windows.Forms.DockStyle.Fill;129 this.t reeView1.Location = new System.Drawing.Point(0, 0);130 this.t reeView1.Name = "treeView1";131 this.t reeView1.Size = new System.Drawing.Size(139, 346);132 this.t reeView1.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; 133 133 // 134 134 // listView1 … … 160 160 // scJobControl.Panel1 161 161 // 162 this.scJobControl.Panel1.Controls.Add(this.t reeView3);162 this.scJobControl.Panel1.Controls.Add(this.tvJobControl); 163 163 // 164 164 // scJobControl.Panel2 … … 169 169 this.scJobControl.TabIndex = 1; 170 170 // 171 // t reeView3172 // 173 this.t reeView3.Dock = System.Windows.Forms.DockStyle.Fill;174 this.t reeView3.Location = new System.Drawing.Point(0, 0);175 this.t reeView3.Name = "treeView3";176 this.t reeView3.Size = new System.Drawing.Size(139, 346);177 this.t reeView3.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; 178 178 // 179 179 // listView3 … … 205 205 // scUserControl.Panel1 206 206 // 207 this.scUserControl.Panel1.Controls.Add(this.t reeView4);207 this.scUserControl.Panel1.Controls.Add(this.tvUserControl); 208 208 // 209 209 // scUserControl.Panel2 … … 214 214 this.scUserControl.TabIndex = 1; 215 215 // 216 // t reeView4217 // 218 this.t reeView4.Dock = System.Windows.Forms.DockStyle.Fill;219 this.t reeView4.Location = new System.Drawing.Point(0, 0);220 this.t reeView4.Name = "treeView4";221 this.t reeView4.Size = new System.Drawing.Size(139, 346);222 this.t reeView4.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; 223 223 // 224 224 // listView4 … … 290 290 private System.Windows.Forms.SplitContainer scClientControl; 291 291 private System.Windows.Forms.TabPage tpUserControl; 292 private System.Windows.Forms.TreeView t reeView1;292 private System.Windows.Forms.TreeView tvClientControl; 293 293 private System.Windows.Forms.ListView listView1; 294 294 private System.Windows.Forms.SplitContainer scJobControl; … … 297 297 private System.Windows.Forms.TreeView treeView2; 298 298 private System.Windows.Forms.ListView listView2; 299 private System.Windows.Forms.TreeView t reeView3;300 private System.Windows.Forms.TreeView t reeView4;299 private System.Windows.Forms.TreeView tvJobControl; 300 private System.Windows.Forms.TreeView tvUserControl; 301 301 private System.Windows.Forms.ListView listView4; 302 302 } -
trunk/sources/HeuristicLab.Hive.Server.Console/HiveServerManagementConsole.cs
r794 r831 28 28 using System.Text; 29 29 using System.Windows.Forms; 30 using HeuristicLab.Hive.Contracts.Interfaces; 31 using HeuristicLab.Hive.Contracts.BusinessObjects; 30 32 31 33 namespace HeuristicLab.Hive.Server.Console { … … 37 39 public event closeForm closeFormEvent; 38 40 41 List<ClientGroup> clients = null; 42 List<Job> jobs = null; 43 List<UserGroup> userGroups = null; 44 39 45 public HiveServerManagementConsole() { 40 46 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 41 73 } 42 74
Note: See TracChangeset
for help on using the changeset viewer.