Changeset 1581 for trunk/sources/HeuristicLab.Hive.Server.Console/3.2/HiveServerManagementConsole.cs
- Timestamp:
- 04/16/09 17:48:26 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.Console/3.2/HiveServerManagementConsole.cs
r1530 r1581 79 79 } 80 80 81 private void updaterWoker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { 82 Refresh(); 83 } 81 84 82 85 private int CapacityRam(int noCores, int freeCores) { … … 231 234 232 235 /// <summary> 233 /// if one client is clicked, a panel is opened with the details 236 /// if one client is clicked, the details for the clicked client are shown 237 /// in the second panel 234 238 /// </summary> 235 239 private void ClientClicked() { … … 258 262 259 263 /// <summary> 260 /// if one job is clicked, a panel is opened with the details 264 /// if one job is clicked, the details for the clicked job are shown 265 /// in the second panel 261 266 /// </summary> 262 267 private void JobClicked() { … … 296 301 } 297 302 if (currentJob.State != State.offline) { 303 GetSnapshotList(); 298 304 lvSnapshots.Visible = true; 299 305 } else { … … 307 313 RefreshJob(change); 308 314 } else if (change.Types == Type.Client) { 309 315 RefreshClient(change); 310 316 } else if (change.Types == Type.ClientGroup) { 311 317 RefreshClientGroup(change); … … 426 432 AddJobForm newForm = new AddJobForm(); 427 433 newForm.Show(); 428 //newForm.addJobEvent += new addDelegate(updaterWoker.RunWorkerAsync);434 newForm.addJobEvent += new addDelegate(updaterWoker.RunWorkerAsync); 429 435 } 430 436 … … 649 655 } 650 656 657 private void GetSnapshotList() { 658 659 lvSnapshots.Items.Clear(); 660 IJobManager jobManager = 661 ServiceLocator.GetJobManager(); 662 ResponseObject<JobResult> jobRes = jobManager.GetLastJobResultOf(currentJob.Id, false); 663 ListViewItem curSnapshot = new ListViewItem(jobRes.Obj.Client.Name); 664 double percentage = jobRes.Obj.Percentage * 100; 665 curSnapshot.SubItems.Add(percentage.ToString() + " %"); 666 curSnapshot.SubItems.Add(jobRes.Obj.timestamp.ToString()); 667 lvSnapshots.Items.Add(curSnapshot); 668 669 670 } 651 671 652 672 #endregion 653 673 654 private void updaterWoker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) {655 Refresh();656 }657 674 658 675
Note: See TracChangeset
for help on using the changeset viewer.