- Timestamp:
- 05/08/09 14:44:23 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Hive.Server.Console/3.2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.Console/3.2/HiveServerManagementConsole.Designer.cs
r1753 r1774 50 50 this.pbUserControl = new System.Windows.Forms.PictureBox(); 51 51 this.plJobDetails = new System.Windows.Forms.Panel(); 52 this.lvJobDetails = new System.Windows.Forms.ListView(); 53 this.chContent = new System.Windows.Forms.ColumnHeader(); 54 this.chDetails = new System.Windows.Forms.ColumnHeader(); 52 55 this.lvSnapshots = new System.Windows.Forms.ListView(); 53 56 this.chClientCalculated = new System.Windows.Forms.ColumnHeader(); … … 82 85 this.scClientControl = new System.Windows.Forms.SplitContainer(); 83 86 this.splitContainer1 = new System.Windows.Forms.SplitContainer(); 87 this.btnRefresh = new System.Windows.Forms.Button(); 84 88 this.tvClientControl = new System.Windows.Forms.TreeView(); 85 89 this.lvClientControl = new System.Windows.Forms.ListView(); … … 135 139 this.refreshToolStripMenuItem.Size = new System.Drawing.Size(123, 22); 136 140 this.refreshToolStripMenuItem.Text = "Refresh"; 137 this.refreshToolStripMenuItem.Click += new System.EventHandler(this. refreshToolStripMenuItem_Click);141 this.refreshToolStripMenuItem.Click += new System.EventHandler(this.Refresh_Click); 138 142 // 139 143 // closeToolStripMenuItem … … 265 269 // 266 270 this.lblClientName.AutoSize = true; 271 this.lblClientName.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 267 272 this.lblClientName.Location = new System.Drawing.Point(41, 14); 268 273 this.lblClientName.Name = "lblClientName"; … … 321 326 this.plJobDetails.BackColor = System.Drawing.SystemColors.Window; 322 327 this.plJobDetails.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; 328 this.plJobDetails.Controls.Add(this.lvJobDetails); 323 329 this.plJobDetails.Controls.Add(this.lvSnapshots); 324 330 this.plJobDetails.Controls.Add(this.lblPriorityJob); … … 341 347 this.plJobDetails.Visible = false; 342 348 // 349 // lvJobDetails 350 // 351 this.lvJobDetails.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { 352 this.chContent, 353 this.chDetails}); 354 this.lvJobDetails.FullRowSelect = true; 355 this.lvJobDetails.GridLines = true; 356 this.lvJobDetails.Location = new System.Drawing.Point(20, 129); 357 this.lvJobDetails.Name = "lvJobDetails"; 358 this.lvJobDetails.Size = new System.Drawing.Size(375, 137); 359 this.lvJobDetails.TabIndex = 17; 360 this.lvJobDetails.UseCompatibleStateImageBehavior = false; 361 this.lvJobDetails.View = System.Windows.Forms.View.Details; 362 // 363 // chContent 364 // 365 this.chContent.Text = "Content"; 366 this.chContent.Width = 121; 367 // 368 // chDetails 369 // 370 this.chDetails.Text = "Details"; 371 this.chDetails.Width = 247; 372 // 343 373 // lvSnapshots 344 374 // … … 633 663 // splitContainer1.Panel1 634 664 // 665 this.splitContainer1.Panel1.Controls.Add(this.btnRefresh); 635 666 this.splitContainer1.Panel1.Controls.Add(this.tvClientControl); 636 667 // … … 642 673 this.splitContainer1.TabIndex = 0; 643 674 // 675 // btnRefresh 676 // 677 this.btnRefresh.Dock = System.Windows.Forms.DockStyle.Fill; 678 this.btnRefresh.Image = ((System.Drawing.Image)(resources.GetObject("btnRefresh.Image"))); 679 this.btnRefresh.Location = new System.Drawing.Point(0, 357); 680 this.btnRefresh.Name = "btnRefresh"; 681 this.btnRefresh.Size = new System.Drawing.Size(151, 29); 682 this.btnRefresh.TabIndex = 1; 683 this.btnRefresh.UseVisualStyleBackColor = true; 684 this.btnRefresh.Click += new System.EventHandler(this.Refresh_Click); 685 // 644 686 // tvClientControl 645 687 // 646 this.tvClientControl.Dock = System.Windows.Forms.DockStyle. Fill;688 this.tvClientControl.Dock = System.Windows.Forms.DockStyle.Top; 647 689 this.tvClientControl.Location = new System.Drawing.Point(0, 0); 648 690 this.tvClientControl.Name = "tvClientControl"; 649 this.tvClientControl.Size = new System.Drawing.Size(151, 3 86);691 this.tvClientControl.Size = new System.Drawing.Size(151, 357); 650 692 this.tvClientControl.TabIndex = 0; 651 693 this.tvClientControl.NodeMouseClick += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.tvClientControl_NodeMouseClick); … … 788 830 private System.Windows.Forms.ImageList ilSmallImgJob; 789 831 private System.Windows.Forms.SplitContainer splitContainer1; 832 private System.Windows.Forms.ToolStripMenuItem refreshToolStripMenuItem; 833 private System.Windows.Forms.ListView lvJobDetails; 834 private System.Windows.Forms.ColumnHeader chContent; 835 private System.Windows.Forms.ColumnHeader chDetails; 836 private System.Windows.Forms.Button btnRefresh; 790 837 private System.Windows.Forms.TreeView tvClientControl; 791 private System.Windows.Forms.ToolStripMenuItem refreshToolStripMenuItem;792 838 } 793 839 } -
trunk/sources/HeuristicLab.Hive.Server.Console/3.2/HiveServerManagementConsole.cs
r1753 r1774 410 410 private void JobClicked() { 411 411 plJobDetails.Visible = true; 412 lvJobDetails.Items.Clear(); 412 413 int i = 0; 413 414 while (jobs.List[i].Id.ToString() != nameCurrentJob) { … … 424 425 } 425 426 427 428 426 429 lblJobName.Text = currentJob.Id.ToString(); 427 430 progressJob.Value = (int)(currentJob.Percentage * 100); 428 431 lblProgress.Text = (int)(currentJob.Percentage * 100) + "% calculated"; 429 432 lblUserCreatedJob.Text = currentJob.UserId.ToString() + /* currentJob.User.Name + */ " created Job"; 430 lblJobCreated.Text = "Created at " + currentJob.DateCreated; 433 //lblJobCreated.Text = "Created at " + currentJob.DateCreated; 434 ListViewItem lvi = new ListViewItem(); 435 lvi.Text = "User:"; 436 lvi.SubItems.Add(currentJob.UserId.ToString()); 437 lvJobDetails.Items.Add(lvi); 438 439 lvi = null; 440 lvi = new ListViewItem(); 441 lvi.Text = "created at:"; 442 lvi.SubItems.Add(currentJob.DateCreated.ToString()); 443 lvJobDetails.Items.Add(lvi); 444 431 445 if (currentJob.ParentJob != null) { 432 lblParentJob.Text = currentJob.ParentJob.Id + " is parent job"; 433 } else { 434 lblParentJob.Text = ""; 435 } 436 lblPriorityJob.Text = "Priority of job is " + currentJob.Priority; 446 lvi = null; 447 lvi = new ListViewItem(); 448 lvi.Text = "Parent job:"; 449 lvi.SubItems.Add(currentJob.ParentJob.ToString()); 450 lvJobDetails.Items.Add(lvi); 451 // lblParentJob.Text = currentJob.ParentJob.Id + " is parent job"; 452 }// else { 453 // lblParentJob.Text = ""; 454 //} 455 456 lvi = null; 457 lvi = new ListViewItem(); 458 lvi.Text = "Priority:"; 459 lvi.SubItems.Add(currentJob.Priority.ToString()); 460 lvJobDetails.Items.Add(lvi); 461 462 // lblPriorityJob.Text = "Priority of job is " + currentJob.Priority; 437 463 if (currentJob.Client != null) { 438 lblClientCalculating.Text = currentJob.Client.Name + " calculated Job"; 439 lblJobCalculationBegin.Text = "Startet calculation at " + currentJob.DateCalculated; 464 lvi = null; 465 lvi = new ListViewItem(); 466 lvi.Text = "Calculation begin:"; 467 lvi.SubItems.Add(currentJob.DateCalculated.ToString()); 468 lvJobDetails.Items.Add(lvi); 469 470 471 lvi = null; 472 lvi = new ListViewItem(); 473 lvi.Text = "Client calculated:"; 474 lvi.SubItems.Add(currentJob.Client.Name.ToString()); 475 lvJobDetails.Items.Add(lvi); 476 477 //lblClientCalculating.Text = currentJob.Client.Name + " calculated Job"; 478 //lblJobCalculationBegin.Text = "Startet calculation at " + currentJob.DateCalculated; 440 479 441 480 if (currentJob.State == State.finished) { … … 443 482 ServiceLocator.GetJobManager(); 444 483 ResponseObject<JobResult> jobRes = jobManager.GetLastJobResultOf(currentJob.Id, false); 445 lblJobCalculationEnd.Text = "Calculation ended at " + jobRes.Obj.DateFinished; 484 485 lvi = null; 486 lvi = new ListViewItem(); 487 lvi.Text = "Calculation ended:"; 488 lvi.SubItems.Add(jobRes.Obj.DateFinished.ToString()); 489 lvJobDetails.Items.Add(lvi); 490 // lblJobCalculationEnd.Text = "Calculation ended at " + jobRes.Obj.DateFinished; 446 491 } 447 492 } else { 448 lblClientCalculating.Text = "";449 lblJobCalculationBegin.Text = "";450 lblJobCalculationEnd.Text = "";493 // lblClientCalculating.Text = ""; 494 // lblJobCalculationBegin.Text = ""; 495 // lblJobCalculationEnd.Text = ""; 451 496 } 452 497 if (currentJob.State != State.offline) { … … 912 957 } 913 958 914 private void refreshToolStripMenuItem_Click(object sender, EventArgs e) { 959 private void Refresh_Click(object sender, EventArgs e) { 960 Form overlayingForm = new Form(); 961 //Label loadingLabel = new Label(); 962 //loadingLabel.Text = "Loading"; 963 //loadingLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); 964 //loadingLabel.Location = new Point(this.Width / 2, this.Height / 2); 965 //overlayingForm.Controls.Add(loadingLabel); 966 967 968 overlayingForm.Show(); 969 overlayingForm.FormBorderStyle = FormBorderStyle.None; 970 overlayingForm.BackColor = Color.Gray; 971 overlayingForm.Opacity = 0.4; 972 overlayingForm.Size = this.Size; 973 //overlayingForm.PointToClient(new Point(this.Left, this.Top)); 974 overlayingForm.Location = this.Location; 975 Console.WriteLine(this.Left + ", " + this.Top); 976 //overlayingForm.Left = this.Left; 977 //overlayingForm.Top = this.Top; 978 979 980 981 982 915 983 AddClients(); 984 985 overlayingForm.Close(); 916 986 } 917 987 } -
trunk/sources/HeuristicLab.Hive.Server.Console/3.2/HiveServerManagementConsole.resx
r1717 r1774 308 308 <value>462, 9</value> 309 309 </metadata> 310 <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> 311 <data name="btnRefresh.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> 312 <value> 313 iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 314 YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgA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+kYjARjtlKunjRQuIN1iMwuS5Qks/BMBgbUknJkJSKpBQq 328 drmdAUhet07w5KEk8cEu4vbFUQ22yYXUX67zCJBNXkg9+RdIiVUNvcXf4eL9DYdLdml/GAr7+DQFwhUq 329 pJj6SMWQGuVWlViqNxqOr6P5W+ZjqoI1wxoYXRoqE1q/Gmnc6JLLSM+sJrcGdXYNnlC+tm2ZwZr+XWr6 330 rN2a/65NX/wH4APFUXIucrPgUh6ieC3viZPa4vFfU36gB1Ssto8AAAAASUVORK5CYII= 331 </value> 332 </data> 310 333 <metadata name="contextMenuJob.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 311 334 <value>252, 44</value>
Note: See TracChangeset
for help on using the changeset viewer.