Changeset 1717 for trunk/sources/HeuristicLab.Hive.Server.Console/3.2/HiveServerManagementConsole.cs
- Timestamp:
- 04/30/09 13:23:40 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.Console/3.2/HiveServerManagementConsole.cs
r1657 r1717 395 395 lvSnapshots.Enabled = true; 396 396 currentJob = jobs.List[i]; 397 pbJobControl.Image = ilLargeImgJob.Images[0]; 397 if (currentJob.State == State.offline) { 398 pbJobControl.Image = ilLargeImgJob.Images[2]; 399 } else if (currentJob.State == State.calculating) { 400 pbJobControl.Image = ilLargeImgJob.Images[1]; 401 } else if (currentJob.State == State.finished) { 402 pbJobControl.Image = ilLargeImgJob.Images[0]; 403 } 398 404 lblJobName.Text = currentJob.Id.ToString(); 399 405 progressJob.Value = (int)(currentJob.Percentage * 100); … … 455 461 if (state == State.finished) { 456 462 lvJobControl.Items[i].Group = jobGroup[1]; 463 lvJobControl.Items[i].ImageIndex = 0; 457 464 System.Diagnostics.Debug.WriteLine("finished"); 458 465 } else if (state == State.calculating) { 459 466 lvJobControl.Items[i].Group = jobGroup[0]; 467 lvJobControl.Items[i].ImageIndex = 1; 460 468 System.Diagnostics.Debug.WriteLine("calculating"); 461 469 } else if (state == State.offline) { 462 470 lvJobControl.Items[i].Group = jobGroup[2]; 471 lvJobControl.Items[i].ImageIndex = 2; 463 472 System.Diagnostics.Debug.WriteLine("offline"); 464 473 … … 469 478 } else if (change.ChangeType == Change.Create) { 470 479 ListViewItem lvi = new ListViewItem( 471 change.ID.ToString(), 0, jobGroup[2]);480 change.ID.ToString(), 2, jobGroup[2]); 472 481 jobObjects.Add(change.ID, lvi); 473 482 lvJobControl.Items.Add(lvi); … … 768 777 769 778 found = true; 779 bool change = false; 780 if (job.State != jobold.State) { 781 change = true; 782 } 770 783 if (job.State != State.offline) { 771 784 if ((!IsEqual(job.Client, jobold.Client)) || (job.State != jobold.State) 772 785 || (job.Percentage != jobold.Percentage)) { 773 change s.Add(new Changes { Types = Type.Job, ID = job.Id, ChangeType = Change.Update, Position = i });786 change = true; 774 787 } 775 788 } else if (job.DateCalculated != jobold.DateCalculated) { 789 change = true; 790 } 791 if (change) { 776 792 changes.Add(new Changes { Types = Type.Job, ID = job.Id, ChangeType = Change.Update, Position = i }); 777 793 }
Note: See TracChangeset
for help on using the changeset viewer.