Changeset 5525 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration
- Timestamp:
- 02/21/11 16:59:05 (14 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/HiveAdministrationView.Designer.cs
r5512 r5525 22 22 namespace HeuristicLab.Clients.Hive.Views.Administration { 23 23 partial class HiveAdministrationView { 24 /// <summary> 25 /// Required designer variable. 26 /// </summary> 27 private System.ComponentModel.IContainer components = null; 28 29 /// <summary> 30 /// Clean up any resources being used. 31 /// </summary> 32 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> 33 protected override void Dispose(bool disposing) { 34 if (disposing && (components != null)) { 35 components.Dispose(); 36 } 37 base.Dispose(disposing); 38 } 24 private System.Windows.Forms.TabControl tabAdmin; 25 private System.Windows.Forms.TabPage tabSlaves; 26 private System.Windows.Forms.SplitContainer splitSlaves; 27 private System.Windows.Forms.TreeView treeSlaveGroup; 28 private System.Windows.Forms.TabControl tabSlaveGroup; 29 private System.Windows.Forms.TabPage tabDetails; 30 private System.Windows.Forms.TabPage tabSchedule; 31 private System.Windows.Forms.TabPage tabJobs; 32 private System.Windows.Forms.TabPage tabUsers; 39 33 40 34 #region Component Designer generated code 41 42 /// <summary>43 /// Required method for Designer support - do not modify44 /// the contents of this method with the code editor.45 /// </summary>46 35 private void InitializeComponent() { 36 this.components = new System.ComponentModel.Container(); 47 37 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HiveAdministrationView)); 48 38 this.tabAdmin = new System.Windows.Forms.TabControl(); … … 52 42 this.btnAddGroup = new System.Windows.Forms.Button(); 53 43 this.treeSlaveGroup = new System.Windows.Forms.TreeView(); 44 this.imageListSlaveGroups = new System.Windows.Forms.ImageList(this.components); 54 45 this.tabSlaveGroup = new System.Windows.Forms.TabControl(); 55 46 this.tabDetails = new System.Windows.Forms.TabPage(); 47 this.txtSlaveState = new System.Windows.Forms.TextBox(); 48 this.txtOS = new System.Windows.Forms.TextBox(); 49 this.label15 = new System.Windows.Forms.Label(); 50 this.label14 = new System.Windows.Forms.Label(); 51 this.txtDetailsDescription = new System.Windows.Forms.TextBox(); 52 this.label13 = new System.Windows.Forms.Label(); 56 53 this.txtName = new System.Windows.Forms.TextBox(); 57 54 this.txtCPU = new System.Windows.Forms.TextBox(); … … 63 60 this.label9 = new System.Windows.Forms.Label(); 64 61 this.tabSchedule = new System.Windows.Forms.TabPage(); 65 this.scheduleControl1 = new HeuristicLab.Clients.Hive.Views.Administration.ScheduleControl();66 62 this.tabJobs = new System.Windows.Forms.TabPage(); 67 this.hiveJobListViewSlaves = new HeuristicLab.Clients.Hive.Views.HiveJobListView();68 63 this.tabUsers = new System.Windows.Forms.TabPage(); 69 64 this.splitUsers = new System.Windows.Forms.SplitContainer(); 70 65 this.lstUsers = new System.Windows.Forms.ListView(); 66 this.imageListUsers = new System.Windows.Forms.ImageList(this.components); 71 67 this.tabUserDetails = new System.Windows.Forms.TabControl(); 72 68 this.tabUserInformation = new System.Windows.Forms.TabPage(); … … 88 84 this.tabStatistics = new System.Windows.Forms.TabPage(); 89 85 this.label5 = new System.Windows.Forms.Label(); 86 this.updateSlaveGroups = new HeuristicLab.Clients.Hive.Views.Common.UpdateControl(); 87 this.scheduleControl1 = new HeuristicLab.Clients.Hive.Views.Administration.ScheduleControl(); 88 this.hiveJobListViewSlaves = new HeuristicLab.Clients.Hive.Views.HiveJobListView(); 90 89 this.hiveExperimentManagerView = new HeuristicLab.Clients.Hive.Views.HiveExperimentManagerView(); 90 this.updateControl1 = new HeuristicLab.Clients.Hive.Views.Common.UpdateControl(); 91 this.updateControl2 = new HeuristicLab.Clients.Hive.Views.Common.UpdateControl(); 91 92 this.tabAdmin.SuspendLayout(); 92 93 this.tabSlaves.SuspendLayout(); … … 145 146 // splitSlaves.Panel1 146 147 // 148 this.splitSlaves.Panel1.Controls.Add(this.updateSlaveGroups); 147 149 this.splitSlaves.Panel1.Controls.Add(this.btnRemoveGroup); 148 150 this.splitSlaves.Panel1.Controls.Add(this.btnAddGroup); … … 179 181 | System.Windows.Forms.AnchorStyles.Left) 180 182 | System.Windows.Forms.AnchorStyles.Right))); 183 this.treeSlaveGroup.ImageIndex = 0; 184 this.treeSlaveGroup.ImageList = this.imageListSlaveGroups; 181 185 this.treeSlaveGroup.Location = new System.Drawing.Point(3, 33); 182 186 this.treeSlaveGroup.Name = "treeSlaveGroup"; 187 this.treeSlaveGroup.SelectedImageIndex = 0; 183 188 this.treeSlaveGroup.Size = new System.Drawing.Size(209, 472); 184 189 this.treeSlaveGroup.TabIndex = 0; 185 190 this.treeSlaveGroup.Click += new System.EventHandler(this.treeSlaveGroup_Click); 191 this.treeSlaveGroup.MouseClick += new System.Windows.Forms.MouseEventHandler(this.treeSlaveGroup_MouseClick); 192 // 193 // imageListSlaveGroups 194 // 195 this.imageListSlaveGroups.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit; 196 this.imageListSlaveGroups.ImageSize = new System.Drawing.Size(16, 16); 197 this.imageListSlaveGroups.TransparentColor = System.Drawing.Color.Transparent; 186 198 // 187 199 // tabSlaveGroup … … 201 213 // tabDetails 202 214 // 215 this.tabDetails.Controls.Add(this.txtSlaveState); 216 this.tabDetails.Controls.Add(this.txtOS); 217 this.tabDetails.Controls.Add(this.label15); 218 this.tabDetails.Controls.Add(this.label14); 219 this.tabDetails.Controls.Add(this.txtDetailsDescription); 220 this.tabDetails.Controls.Add(this.label13); 203 221 this.tabDetails.Controls.Add(this.txtName); 204 222 this.tabDetails.Controls.Add(this.txtCPU); … … 217 235 this.tabDetails.UseVisualStyleBackColor = true; 218 236 // 237 // txtSlaveState 238 // 239 this.txtSlaveState.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 240 | System.Windows.Forms.AnchorStyles.Right))); 241 this.txtSlaveState.Location = new System.Drawing.Point(134, 145); 242 this.txtSlaveState.Name = "txtSlaveState"; 243 this.txtSlaveState.Size = new System.Drawing.Size(352, 20); 244 this.txtSlaveState.TabIndex = 13; 245 this.txtSlaveState.Text = "Offline"; 246 // 247 // txtOS 248 // 249 this.txtOS.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 250 | System.Windows.Forms.AnchorStyles.Right))); 251 this.txtOS.Location = new System.Drawing.Point(134, 119); 252 this.txtOS.Name = "txtOS"; 253 this.txtOS.Size = new System.Drawing.Size(352, 20); 254 this.txtOS.TabIndex = 12; 255 this.txtOS.Text = "Windows 7"; 256 // 257 // label15 258 // 259 this.label15.AutoSize = true; 260 this.label15.Location = new System.Drawing.Point(16, 152); 261 this.label15.Name = "label15"; 262 this.label15.Size = new System.Drawing.Size(32, 13); 263 this.label15.TabIndex = 11; 264 this.label15.Text = "State"; 265 // 266 // label14 267 // 268 this.label14.AutoSize = true; 269 this.label14.Location = new System.Drawing.Point(14, 126); 270 this.label14.Name = "label14"; 271 this.label14.Size = new System.Drawing.Size(90, 13); 272 this.label14.TabIndex = 10; 273 this.label14.Text = "Operating System"; 274 // 275 // txtDetailsDescription 276 // 277 this.txtDetailsDescription.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 278 | System.Windows.Forms.AnchorStyles.Right))); 279 this.txtDetailsDescription.Location = new System.Drawing.Point(133, 41); 280 this.txtDetailsDescription.Name = "txtDetailsDescription"; 281 this.txtDetailsDescription.Size = new System.Drawing.Size(353, 20); 282 this.txtDetailsDescription.TabIndex = 9; 283 this.txtDetailsDescription.Text = "ascheibepc Description"; 284 // 285 // label13 286 // 287 this.label13.AutoSize = true; 288 this.label13.Location = new System.Drawing.Point(17, 48); 289 this.label13.Name = "label13"; 290 this.label13.Size = new System.Drawing.Size(60, 13); 291 this.label13.TabIndex = 8; 292 this.label13.Text = "Description"; 293 // 219 294 // txtName 220 295 // 221 296 this.txtName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 222 297 | System.Windows.Forms.AnchorStyles.Right))); 223 this.txtName.Location = new System.Drawing.Point(1 23, 30);298 this.txtName.Location = new System.Drawing.Point(133, 15); 224 299 this.txtName.Name = "txtName"; 225 this.txtName.Size = new System.Drawing.Size( 100, 20);300 this.txtName.Size = new System.Drawing.Size(353, 20); 226 301 this.txtName.TabIndex = 7; 227 302 this.txtName.Text = "ascheibepc"; … … 231 306 this.txtCPU.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 232 307 | System.Windows.Forms.AnchorStyles.Right))); 233 this.txtCPU.Location = new System.Drawing.Point(1 23, 56);308 this.txtCPU.Location = new System.Drawing.Point(133, 67); 234 309 this.txtCPU.Name = "txtCPU"; 235 this.txtCPU.Size = new System.Drawing.Size( 100, 20);310 this.txtCPU.Size = new System.Drawing.Size(353, 20); 236 311 this.txtCPU.TabIndex = 6; 237 312 this.txtCPU.Text = "Intel Core 2 Duo @ 2.4 Ghz"; … … 241 316 this.txtMemory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 242 317 | System.Windows.Forms.AnchorStyles.Right))); 243 this.txtMemory.Location = new System.Drawing.Point(1 23, 82);318 this.txtMemory.Location = new System.Drawing.Point(133, 93); 244 319 this.txtMemory.Name = "txtMemory"; 245 this.txtMemory.Size = new System.Drawing.Size( 100, 20);320 this.txtMemory.Size = new System.Drawing.Size(353, 20); 246 321 this.txtMemory.TabIndex = 5; 247 322 this.txtMemory.Text = "2048 MB"; … … 251 326 this.txtDetailsCalculatedJobs.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 252 327 | System.Windows.Forms.AnchorStyles.Right))); 253 this.txtDetailsCalculatedJobs.Location = new System.Drawing.Point(1 23, 108);328 this.txtDetailsCalculatedJobs.Location = new System.Drawing.Point(134, 171); 254 329 this.txtDetailsCalculatedJobs.Name = "txtDetailsCalculatedJobs"; 255 this.txtDetailsCalculatedJobs.Size = new System.Drawing.Size( 100, 20);330 this.txtDetailsCalculatedJobs.Size = new System.Drawing.Size(352, 20); 256 331 this.txtDetailsCalculatedJobs.TabIndex = 4; 257 332 this.txtDetailsCalculatedJobs.Text = "33"; … … 260 335 // 261 336 this.label12.AutoSize = true; 262 this.label12.Location = new System.Drawing.Point( 6, 115);337 this.label12.Location = new System.Drawing.Point(17, 178); 263 338 this.label12.Name = "label12"; 264 339 this.label12.Size = new System.Drawing.Size(82, 13); … … 269 344 // 270 345 this.label11.AutoSize = true; 271 this.label11.Location = new System.Drawing.Point( 7, 89);346 this.label11.Location = new System.Drawing.Point(17, 100); 272 347 this.label11.Name = "label11"; 273 348 this.label11.Size = new System.Drawing.Size(44, 13); … … 278 353 // 279 354 this.label10.AutoSize = true; 280 this.label10.Location = new System.Drawing.Point( 7, 63);355 this.label10.Location = new System.Drawing.Point(17, 74); 281 356 this.label10.Name = "label10"; 282 357 this.label10.Size = new System.Drawing.Size(29, 13); … … 287 362 // 288 363 this.label9.AutoSize = true; 289 this.label9.Location = new System.Drawing.Point( 7, 38);364 this.label9.Location = new System.Drawing.Point(16, 22); 290 365 this.label9.Name = "label9"; 291 366 this.label9.Size = new System.Drawing.Size(35, 13); … … 304 379 this.tabSchedule.UseVisualStyleBackColor = true; 305 380 // 306 // scheduleControl1307 //308 this.scheduleControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)309 | System.Windows.Forms.AnchorStyles.Left)310 | System.Windows.Forms.AnchorStyles.Right)));311 this.scheduleControl1.Location = new System.Drawing.Point(7, 7);312 this.scheduleControl1.Name = "scheduleControl1";313 this.scheduleControl1.Size = new System.Drawing.Size(862, 562);314 this.scheduleControl1.TabIndex = 0;315 //316 381 // tabJobs 317 382 // 383 this.tabJobs.Controls.Add(this.updateControl1); 318 384 this.tabJobs.Controls.Add(this.hiveJobListViewSlaves); 319 385 this.tabJobs.Location = new System.Drawing.Point(4, 22); … … 325 391 this.tabJobs.UseVisualStyleBackColor = true; 326 392 // 327 // hiveJobListViewSlaves328 //329 this.hiveJobListViewSlaves.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)330 | System.Windows.Forms.AnchorStyles.Left)331 | System.Windows.Forms.AnchorStyles.Right)));332 this.hiveJobListViewSlaves.Caption = "JobItemList View";333 this.hiveJobListViewSlaves.Content = null;334 this.hiveJobListViewSlaves.Location = new System.Drawing.Point(7, 7);335 this.hiveJobListViewSlaves.Name = "hiveJobListViewSlaves";336 this.hiveJobListViewSlaves.ReadOnly = false;337 this.hiveJobListViewSlaves.Size = new System.Drawing.Size(499, 463);338 this.hiveJobListViewSlaves.TabIndex = 0;339 //340 393 // tabUsers 341 394 // … … 354 407 | System.Windows.Forms.AnchorStyles.Left) 355 408 | System.Windows.Forms.AnchorStyles.Right))); 356 this.splitUsers.Location = new System.Drawing.Point( 6, 6);409 this.splitUsers.Location = new System.Drawing.Point(3, 6); 357 410 this.splitUsers.Name = "splitUsers"; 358 411 // … … 365 418 this.splitUsers.Panel2.Controls.Add(this.tabUserDetails); 366 419 this.splitUsers.Size = new System.Drawing.Size(722, 508); 367 this.splitUsers.SplitterDistance = 2 40;420 this.splitUsers.SplitterDistance = 215; 368 421 this.splitUsers.TabIndex = 0; 369 422 // … … 373 426 | System.Windows.Forms.AnchorStyles.Left) 374 427 | System.Windows.Forms.AnchorStyles.Right))); 375 this.lstUsers.Location = new System.Drawing.Point(3, 3);428 this.lstUsers.Location = new System.Drawing.Point(3, 4); 376 429 this.lstUsers.Name = "lstUsers"; 377 this.lstUsers.Size = new System.Drawing.Size(234, 502); 430 this.lstUsers.Size = new System.Drawing.Size(209, 501); 431 this.lstUsers.SmallImageList = this.imageListUsers; 378 432 this.lstUsers.TabIndex = 0; 379 433 this.lstUsers.UseCompatibleStateImageBehavior = false; 434 this.lstUsers.View = System.Windows.Forms.View.List; 435 // 436 // imageListUsers 437 // 438 this.imageListUsers.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit; 439 this.imageListUsers.ImageSize = new System.Drawing.Size(16, 16); 440 this.imageListUsers.TransparentColor = System.Drawing.Color.Transparent; 380 441 // 381 442 // tabUserDetails … … 386 447 this.tabUserDetails.Controls.Add(this.tabUserInformation); 387 448 this.tabUserDetails.Controls.Add(this.tabUserJobs); 388 this.tabUserDetails.Location = new System.Drawing.Point( 4, 4);449 this.tabUserDetails.Location = new System.Drawing.Point(3, 3); 389 450 this.tabUserDetails.Name = "tabUserDetails"; 390 451 this.tabUserDetails.SelectedIndex = 0; 391 this.tabUserDetails.Size = new System.Drawing.Size(4 71, 501);452 this.tabUserDetails.Size = new System.Drawing.Size(496, 501); 392 453 this.tabUserDetails.TabIndex = 1; 393 454 // … … 411 472 this.tabUserInformation.Name = "tabUserInformation"; 412 473 this.tabUserInformation.Padding = new System.Windows.Forms.Padding(3); 413 this.tabUserInformation.Size = new System.Drawing.Size(4 63, 475);474 this.tabUserInformation.Size = new System.Drawing.Size(488, 475); 414 475 this.tabUserInformation.TabIndex = 0; 415 476 this.tabUserInformation.Text = "User Information"; … … 420 481 this.txtUserName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 421 482 | System.Windows.Forms.AnchorStyles.Right))); 422 this.txtUserName.Location = new System.Drawing.Point(16 1, 6);483 this.txtUserName.Location = new System.Drawing.Point(163, 14); 423 484 this.txtUserName.Name = "txtUserName"; 424 this.txtUserName.Size = new System.Drawing.Size( 100, 20);485 this.txtUserName.Size = new System.Drawing.Size(319, 20); 425 486 this.txtUserName.TabIndex = 17; 426 487 this.txtUserName.Text = "ascheibe"; … … 430 491 this.txtUserLastActivity.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 431 492 | System.Windows.Forms.AnchorStyles.Right))); 432 this.txtUserLastActivity.Location = new System.Drawing.Point(16 1, 41);493 this.txtUserLastActivity.Location = new System.Drawing.Point(163, 40); 433 494 this.txtUserLastActivity.Name = "txtUserLastActivity"; 434 this.txtUserLastActivity.Size = new System.Drawing.Size( 100, 20);495 this.txtUserLastActivity.Size = new System.Drawing.Size(319, 20); 435 496 this.txtUserLastActivity.TabIndex = 16; 436 497 this.txtUserLastActivity.Text = "11.1.2010"; … … 440 501 this.txtUserRole.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 441 502 | System.Windows.Forms.AnchorStyles.Right))); 442 this.txtUserRole.Location = new System.Drawing.Point(16 2, 72);503 this.txtUserRole.Location = new System.Drawing.Point(163, 66); 443 504 this.txtUserRole.Name = "txtUserRole"; 444 this.txtUserRole.Size = new System.Drawing.Size( 100, 20);505 this.txtUserRole.Size = new System.Drawing.Size(319, 20); 445 506 this.txtUserRole.TabIndex = 15; 446 507 this.txtUserRole.Text = "Hive Slave"; … … 449 510 // 450 511 this.label1.AutoSize = true; 451 this.label1.Location = new System.Drawing.Point(1 3, 14);512 this.label1.Location = new System.Drawing.Point(15, 21); 452 513 this.label1.Name = "label1"; 453 514 this.label1.Size = new System.Drawing.Size(58, 13); … … 459 520 this.txtUserEmail.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 460 521 | System.Windows.Forms.AnchorStyles.Right))); 461 this.txtUserEmail.Location = new System.Drawing.Point(16 2, 103);522 this.txtUserEmail.Location = new System.Drawing.Point(163, 92); 462 523 this.txtUserEmail.Name = "txtUserEmail"; 463 this.txtUserEmail.Size = new System.Drawing.Size( 100, 20);524 this.txtUserEmail.Size = new System.Drawing.Size(319, 20); 464 525 this.txtUserEmail.TabIndex = 14; 465 526 this.txtUserEmail.Text = "ascheibe@mail.com"; … … 468 529 // 469 530 this.label2.AutoSize = true; 470 this.label2.Location = new System.Drawing.Point(1 2, 50);531 this.label2.Location = new System.Drawing.Point(15, 47); 471 532 this.label2.Name = "label2"; 472 533 this.label2.Size = new System.Drawing.Size(64, 13); … … 478 539 this.txtUserPriority.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 479 540 | System.Windows.Forms.AnchorStyles.Right))); 480 this.txtUserPriority.Location = new System.Drawing.Point(163, 1 36);541 this.txtUserPriority.Location = new System.Drawing.Point(163, 118); 481 542 this.txtUserPriority.Name = "txtUserPriority"; 482 this.txtUserPriority.Size = new System.Drawing.Size( 100, 20);543 this.txtUserPriority.Size = new System.Drawing.Size(319, 20); 483 544 this.txtUserPriority.TabIndex = 13; 484 545 this.txtUserPriority.Text = "10"; … … 487 548 // 488 549 this.label3.AutoSize = true; 489 this.label3.Location = new System.Drawing.Point(1 3, 79);550 this.label3.Location = new System.Drawing.Point(15, 73); 490 551 this.label3.Name = "label3"; 491 552 this.label3.Size = new System.Drawing.Size(29, 13); … … 497 558 this.txtUserCalculatedJobs.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 498 559 | System.Windows.Forms.AnchorStyles.Right))); 499 this.txtUserCalculatedJobs.Location = new System.Drawing.Point(163, 1 70);560 this.txtUserCalculatedJobs.Location = new System.Drawing.Point(163, 144); 500 561 this.txtUserCalculatedJobs.Name = "txtUserCalculatedJobs"; 501 this.txtUserCalculatedJobs.Size = new System.Drawing.Size( 100, 20);562 this.txtUserCalculatedJobs.Size = new System.Drawing.Size(319, 20); 502 563 this.txtUserCalculatedJobs.TabIndex = 12; 503 564 this.txtUserCalculatedJobs.Text = "125"; … … 506 567 // 507 568 this.label4.AutoSize = true; 508 this.label4.Location = new System.Drawing.Point(1 3, 111);569 this.label4.Location = new System.Drawing.Point(15, 99); 509 570 this.label4.Name = "label4"; 510 571 this.label4.Size = new System.Drawing.Size(32, 13); … … 516 577 this.txtUserExecutionTime.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 517 578 | System.Windows.Forms.AnchorStyles.Right))); 518 this.txtUserExecutionTime.Location = new System.Drawing.Point(163, 202);579 this.txtUserExecutionTime.Location = new System.Drawing.Point(163, 170); 519 580 this.txtUserExecutionTime.Name = "txtUserExecutionTime"; 520 this.txtUserExecutionTime.Size = new System.Drawing.Size( 100, 20);581 this.txtUserExecutionTime.Size = new System.Drawing.Size(319, 20); 521 582 this.txtUserExecutionTime.TabIndex = 11; 522 583 this.txtUserExecutionTime.Text = "15d 3h 5m"; … … 525 586 // 526 587 this.label6.AutoSize = true; 527 this.label6.Location = new System.Drawing.Point(1 3, 136);588 this.label6.Location = new System.Drawing.Point(15, 125); 528 589 this.label6.Name = "label6"; 529 590 this.label6.Size = new System.Drawing.Size(63, 13); … … 534 595 // 535 596 this.label8.AutoSize = true; 536 this.label8.Location = new System.Drawing.Point(1 3, 202);597 this.label8.Location = new System.Drawing.Point(15, 177); 537 598 this.label8.Name = "label8"; 538 599 this.label8.Size = new System.Drawing.Size(116, 13); … … 543 604 // 544 605 this.label7.AutoSize = true; 545 this.label7.Location = new System.Drawing.Point(1 2, 170);606 this.label7.Location = new System.Drawing.Point(15, 151); 546 607 this.label7.Name = "label7"; 547 608 this.label7.Size = new System.Drawing.Size(82, 13); … … 551 612 // tabUserJobs 552 613 // 614 this.tabUserJobs.Controls.Add(this.updateControl2); 553 615 this.tabUserJobs.Controls.Add(this.hiveExperimentManagerView); 554 616 this.tabUserJobs.Location = new System.Drawing.Point(4, 22); 555 617 this.tabUserJobs.Name = "tabUserJobs"; 556 618 this.tabUserJobs.Padding = new System.Windows.Forms.Padding(3); 557 this.tabUserJobs.Size = new System.Drawing.Size(4 63, 475);619 this.tabUserJobs.Size = new System.Drawing.Size(488, 475); 558 620 this.tabUserJobs.TabIndex = 1; 559 621 this.tabUserJobs.Text = "Experiments"; … … 581 643 "...."; 582 644 // 645 // updateSlaveGroups 646 // 647 this.updateSlaveGroups.Location = new System.Drawing.Point(63, 3); 648 this.updateSlaveGroups.Name = "updateSlaveGroups"; 649 this.updateSlaveGroups.Size = new System.Drawing.Size(75, 24); 650 this.updateSlaveGroups.TabIndex = 4; 651 this.updateSlaveGroups.UpdateAction = null; 652 // 653 // scheduleControl1 654 // 655 this.scheduleControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 656 | System.Windows.Forms.AnchorStyles.Left) 657 | System.Windows.Forms.AnchorStyles.Right))); 658 this.scheduleControl1.Location = new System.Drawing.Point(7, 7); 659 this.scheduleControl1.Name = "scheduleControl1"; 660 this.scheduleControl1.Size = new System.Drawing.Size(862, 562); 661 this.scheduleControl1.TabIndex = 0; 662 // 663 // hiveJobListViewSlaves 664 // 665 this.hiveJobListViewSlaves.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 666 | System.Windows.Forms.AnchorStyles.Left) 667 | System.Windows.Forms.AnchorStyles.Right))); 668 this.hiveJobListViewSlaves.Caption = "JobItemList View"; 669 this.hiveJobListViewSlaves.Content = null; 670 this.hiveJobListViewSlaves.Location = new System.Drawing.Point(7, 26); 671 this.hiveJobListViewSlaves.Name = "hiveJobListViewSlaves"; 672 this.hiveJobListViewSlaves.ReadOnly = false; 673 this.hiveJobListViewSlaves.Size = new System.Drawing.Size(485, 450); 674 this.hiveJobListViewSlaves.TabIndex = 0; 675 // 583 676 // hiveExperimentManagerView 584 677 // … … 588 681 this.hiveExperimentManagerView.Caption = "HiveExperimentManagerBaseView"; 589 682 this.hiveExperimentManagerView.Content = null; 590 this.hiveExperimentManagerView.Location = new System.Drawing.Point(4, 4);683 this.hiveExperimentManagerView.Location = new System.Drawing.Point(4, 26); 591 684 this.hiveExperimentManagerView.Name = "hiveExperimentManagerView"; 592 685 this.hiveExperimentManagerView.ReadOnly = false; 593 this.hiveExperimentManagerView.Size = new System.Drawing.Size( 735, 524);686 this.hiveExperimentManagerView.Size = new System.Drawing.Size(484, 449); 594 687 this.hiveExperimentManagerView.TabIndex = 0; 688 // 689 // updateControl1 690 // 691 this.updateControl1.Location = new System.Drawing.Point(7, 3); 692 this.updateControl1.Name = "updateControl1"; 693 this.updateControl1.Size = new System.Drawing.Size(75, 24); 694 this.updateControl1.TabIndex = 1; 695 this.updateControl1.UpdateAction = null; 696 // 697 // updateControl2 698 // 699 this.updateControl2.Location = new System.Drawing.Point(7, 4); 700 this.updateControl2.Name = "updateControl2"; 701 this.updateControl2.Size = new System.Drawing.Size(75, 24); 702 this.updateControl2.TabIndex = 1; 703 this.updateControl2.UpdateAction = null; 595 704 // 596 705 // HiveAdministrationView … … 630 739 #endregion 631 740 632 private System.Windows.Forms.TabControl tabAdmin;633 private System.Windows.Forms.TabPage tabSlaves;634 private System.Windows.Forms.TabPage tabUsers;635 private System.Windows.Forms.TreeView treeSlaveGroup;636 private System.Windows.Forms.TabControl tabSlaveGroup;637 private System.Windows.Forms.TabPage tabDetails;638 private System.Windows.Forms.TabPage tabSchedule;639 private System.Windows.Forms.TabPage tabJobs;640 private System.Windows.Forms.SplitContainer splitSlaves;641 741 private ScheduleControl scheduleControl1; 642 742 private System.Windows.Forms.SplitContainer splitUsers; … … 673 773 private System.Windows.Forms.Button btnRemoveGroup; 674 774 private HiveExperimentManagerView hiveExperimentManagerView; 775 private System.Windows.Forms.TextBox txtDetailsDescription; 776 private System.Windows.Forms.Label label13; 777 private System.Windows.Forms.TextBox txtOS; 778 private System.Windows.Forms.Label label15; 779 private System.Windows.Forms.Label label14; 780 private System.Windows.Forms.TextBox txtSlaveState; 781 private System.Windows.Forms.ImageList imageListSlaveGroups; 782 private System.ComponentModel.IContainer components; 783 private System.Windows.Forms.ImageList imageListUsers; 784 private Common.UpdateControl updateSlaveGroups; 785 private Common.UpdateControl updateControl1; 786 private Common.UpdateControl updateControl2; 675 787 } 676 788 } -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/HiveAdministrationView.cs
r5472 r5525 20 20 #endregion 21 21 22 using System .Collections.Generic;22 using System; 23 23 using System.Windows.Forms; 24 24 using HeuristicLab.Clients.Hive.Administration; 25 25 using HeuristicLab.Core.Views; 26 26 using HeuristicLab.MainForm; 27 //using HeuristicLab.Services.Hive.Common.DataTransfer;27 using HeuristicLab.Services.Hive.Common.DataTransfer; 28 28 29 29 namespace HeuristicLab.Clients.Hive.Views.Administration { … … 51 51 #endregion 52 52 53 53 54 protected override void OnContentChanged() { 54 55 base.OnContentChanged(); … … 56 57 // TODO: Put code here when content is null 57 58 } else { 58 // TODO: Put code here when content has been changed and is not null 59 updateSlaveGroups.UpdateAction = new Action(Content.UpdateSlaveGroups); 60 treeSlaveGroup.ImageList.Images.Add(HiveImageLibrary.Slave); 61 treeSlaveGroup.ImageList.Images.Add(HiveImageLibrary.SlaveGroup); 62 63 foreach (SlaveGroup g in Content.SlaveGroups) { 64 TreeNode tn = new TreeNode(); 65 tn.ImageIndex = treeSlaveGroup.ImageList.Images.Count - 1; 66 tn.SelectedImageIndex = tn.ImageIndex; 67 68 tn.Tag = g; 69 tn.Text = g.Name; 70 foreach (Slave s in Content.Slaves.FindAll(s => s.ParentResourceId != null && s.ParentResourceId == g.Id)) { 71 var stn = new TreeNode(s.Name); 72 stn.ImageIndex = 0; 73 stn.SelectedImageIndex = stn.ImageIndex; 74 stn.Tag = s; 75 tn.Nodes.Add(stn); 76 } 77 treeSlaveGroup.Nodes.Add(tn); 78 } 79 80 TreeNode ungrp = new TreeNode("UNGROUPED"); 81 ungrp.ImageIndex = treeSlaveGroup.ImageList.Images.Count - 1; 82 ungrp.SelectedImageIndex = ungrp.ImageIndex; 83 var newGroup = new SlaveGroup(); 84 newGroup.Name = "UNGROUPED"; 85 newGroup.Id = Guid.NewGuid(); 86 newGroup.Description = "Contains slaves which are in no group"; 87 ungrp.Tag = newGroup; 88 89 foreach (Slave s in Content.Slaves.FindAll(s => s.ParentResourceId == null)) { 90 var stn = new TreeNode(s.Name); 91 stn.ImageIndex = 0; 92 stn.SelectedImageIndex = stn.ImageIndex; 93 stn.Tag = s; 94 ungrp.Nodes.Add(stn); 95 } 96 treeSlaveGroup.Nodes.Add(ungrp); 97 98 ShowUsers(); 99 } 100 } 101 102 private void ShowUsers() { 103 lstUsers.SmallImageList.Images.Add(HeuristicLab.Common.Resources.VSImageLibrary.User); 104 105 foreach (string user in Content.Users) { 106 ListViewItem lvi = new ListViewItem(); 107 lvi.Tag = user; 108 lvi.Text = user; 109 lvi.ImageIndex = 0; 110 lstUsers.Items.Add(lvi); 59 111 } 60 112 } … … 65 117 } 66 118 67 /*List<SlaveGroup> slaveGroups;68 List<Slave> slaves;*/119 private void HiveAdministrationView_Load(object sender, System.EventArgs e) { 120 if (Content != null) { 69 121 70 private void HiveAdministrationView_Load(object sender, System.EventArgs e) { 71 72 /* using (HeuristicLab.Clients.Common.Disposable<IHiveService> service = ServiceLocator.Instance.GetService()) { 73 slaveGroups = new List<SlaveGroup>(service.Obj.GetSlaveGroups()); 74 slaves = new List<Slave>(service.Obj.GetSlaves()); 75 76 foreach (SlaveGroup g in slaveGroups) { 77 TreeNode tn = new TreeNode(); 78 tn.Text = "Group " + g.Name; 79 foreach (Slave s in slaves.FindAll(s => s.ParentResourceId != null && s.ParentResourceId == g.Id)) { 80 tn.Nodes.Add(new TreeNode(s.Name)); 81 } 82 treeSlaveGroup.Nodes.Add(tn); 83 } 84 85 TreeNode ungrp = new TreeNode("UNGROUPED"); 86 foreach (Slave s in slaves.FindAll(s => s.ParentResourceId == null)) { 87 ungrp.Nodes.Add(new TreeNode(s.Name)); 88 } 89 treeSlaveGroup.Nodes.Add(ungrp); 90 91 }*/ 122 } 92 123 } 93 124 94 125 private void treeSlaveGroup_Click(object sender, System.EventArgs e) { 95 string text = treeSlaveGroup.SelectedNode.Text;96 97 /*Slave slave = slaves.Find(s => s.Name == text);98 if (slave != null) {99 100 } */101 126 102 127 } 128 129 private void treeSlaveGroup_MouseClick(object sender, MouseEventArgs e) { 130 if (treeSlaveGroup.SelectedNode != null && 131 treeSlaveGroup.SelectedNode.Tag != null) { 132 if (treeSlaveGroup.SelectedNode.Tag.GetType() == typeof(Slave)) { 133 Slave s = treeSlaveGroup.SelectedNode.Tag as Slave; 134 txtName.Text = s.Name; 135 txtDetailsDescription.Text = s.Description; 136 txtCPU.Text = s.CpuArchitecture + ", " + s.Cores + " Cores @ " + s.CpuSpeed.ToString(); 137 txtMemory.Text = s.Memory.ToString(); 138 txtDetailsCalculatedJobs.Clear(); 139 txtOS.Text = s.OperatingSystem; 140 txtSlaveState.Text = s.SlaveState.ToString(); 141 } else if (treeSlaveGroup.SelectedNode.Tag.GetType() == typeof(SlaveGroup)) { 142 SlaveGroup s = treeSlaveGroup.SelectedNode.Tag as SlaveGroup; 143 txtName.Text = s.Name; 144 txtDetailsDescription.Text = s.Description; 145 txtCPU.Clear(); 146 txtMemory.Clear(); 147 txtDetailsCalculatedJobs.Clear(); 148 txtOS.Clear(); 149 txtSlaveState.Clear(); 150 } 151 } 152 } 153 154 103 155 104 156 #region Event Handlers -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.4/Administration/HiveAdministrationView.resx
r5512 r5525 118 118 <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> 119 119 </resheader> 120 <metadata name="imageListUsers.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 121 <value>120, 17</value> 122 </metadata> 120 123 <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> 121 124 <data name="btnRemoveGroup.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> … … 166 169 fNTws+7PbaOWo6fHXMf6Hwc/vj/OGn/2S8Yv7ycKnpCfVEyqTDZPmU2dmnafvvF05dOJZ+nPFmYKf5X+ 167 170 tfa5zvMffnP8rX82YnbiBf/Fp99LXsq/PPRq2aueuYC5R69TXy/MF72Rf3P4LeNt37vwd5MLWe+x7ys/ 168 6H7o/ujz8cGn1E+f/gUDmPP8usTo0wAAAAlwSFlzAAALD QAACw0B7QfALAAAAbVJREFUOE+lk7lLA0EU171 6H7o/ujz8cGn1E+f/gUDmPP8usTo0wAAAAlwSFlzAAALDAAACwwBP0AiyAAAAbVJREFUOE+lk7lLA0EU 169 172 xuMRcdeYyIBRQcmxURTiEXE8ECQqpAkpJJVNihSKjVjbW1lJChuxtBGUNGKRwj9AvA9QEMRGS01M4YYZ 170 173 v9nN5twgavGDt/tmvn3HtxbOueU/6JcpGQEpMAfqfyMoLjeAZbYU5iw2ryJe0N6ZVUZJI3JesGrkhYB4 … … 224 227 fNTws+7PbaOWo6fHXMf6Hwc/vj/OGn/2S8Yv7ycKnpCfVEyqTDZPmU2dmnafvvF05dOJZ+nPFmYKf5X+ 225 228 tfa5zvMffnP8rX82YnbiBf/Fp99LXsq/PPRq2aueuYC5R69TXy/MF72Rf3P4LeNt37vwd5MLWe+x7ys/ 226 6H7o/ujz8cGn1E+f/gUDmPP8usTo0wAAAAlwSFlzAAALD QAACw0B7QfALAAAAX5JREFUOE9j+P//PwMl229 6H7o/ujz8cGn1E+f/gUDmPP8usTo0wAAAAlwSFlzAAALDAAACwwBP0AiyAAAAX5JREFUOE9j+P//PwMl 227 230 mCLNIItxGcBzdwH7mVvzOM9cncN15uIM3gO4XInLAObrc7j+/3nU+P/Pw4b/JycL/CHVAIbz03nhBhzs 228 231 EQHqxx5WOMPg+CTBD38e1v3/86Dq/452cZAB/NgMgRtwaSbPgbNT+c6cnCR45ki/0Jl93SJ//jwo///3 … … 234 237 </value> 235 238 </data> 239 <metadata name="imageListSlaveGroups.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 240 <value>17, 17</value> 241 </metadata> 236 242 </root>
Note: See TracChangeset
for help on using the changeset viewer.