Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/16/09 17:48:26 (15 years ago)
Author:
aleitner
Message:

added last snapshotdetails (#569)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.Console/3.2/HiveServerManagementConsole.cs

    r1530 r1581  
    7979    }
    8080
     81    private void updaterWoker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) {
     82      Refresh();
     83    }
    8184
    8285    private int CapacityRam(int noCores, int freeCores) {
     
    231234
    232235    /// <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
    234238    /// </summary>
    235239    private void ClientClicked() {
     
    258262
    259263    /// <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
    261266    /// </summary>
    262267    private void JobClicked() {
     
    296301      }
    297302      if (currentJob.State != State.offline) {
     303        GetSnapshotList();
    298304        lvSnapshots.Visible = true;
    299305      } else {
     
    307313          RefreshJob(change);
    308314        } else if (change.Types == Type.Client) {
    309           RefreshClient(change);
     315         RefreshClient(change);
    310316        } else if (change.Types == Type.ClientGroup) {
    311317          RefreshClientGroup(change);
     
    426432      AddJobForm newForm = new AddJobForm();
    427433      newForm.Show();
    428       //newForm.addJobEvent += new addDelegate(updaterWoker.RunWorkerAsync);
     434      newForm.addJobEvent += new addDelegate(updaterWoker.RunWorkerAsync);
    429435    }
    430436
     
    649655    }
    650656
     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    }
    651671
    652672    #endregion
    653673
    654     private void updaterWoker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) {
    655       Refresh();
    656     }
    657674
    658675
Note: See TracChangeset for help on using the changeset viewer.