Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/06/13 12:30:18 (12 years ago)
Author:
pfleck
Message:

#2030
Switched Text encoding to Mtom encoding for better performance for binary data.
Merged trunk into branch.

Location:
branches/HivePerformance/sources
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/HivePerformance/sources

  • branches/HivePerformance/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/HiveJobManagerView.cs

    r9230 r9444  
    119119
    120120    protected override void OnClosing(FormClosingEventArgs e) {
    121       if (Content != null && Content.Jobs.Any(x => x.IsProgressing)) {
     121      if (Content != null && Content.Jobs != null && Content.Jobs.Any(x => x.IsProgressing)) {
    122122        DialogResult result = MessageBox.Show("There are still unfinished down/uploads. Are you sure you want to close the window?", "HeuristicLab Hive Job Manager", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
    123123
     
    131131
    132132    protected override void OnClosed(FormClosedEventArgs e) {
    133       if (Content != null) {
     133      if (Content != null && Content.Jobs != null) {
    134134        Content.ClearHiveClient();
    135135        Content = null;
  • branches/HivePerformance/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs

    r9223 r9444  
    7676      Content.ExecutionStateChanged += new EventHandler(Content_ExecutionStateChanged);
    7777      Content.ExecutionTimeChanged += new EventHandler(Content_ExecutionTimeChanged);
    78       Content.IsAllowedPrivilegedChanged += new EventHandler(Content_IsAllowedPrivilegedChanged);
    7978      Content.Loaded += new EventHandler(Content_Loaded);
    8079      Content.TaskReceived += new EventHandler(Content_TaskReceived);
     
    145144          executionTimeTextBox.Text = Content.ExecutionTime.ToString();
    146145          resourceNamesTextBox.Text = Content.Job.ResourceNames;
    147           isPrivilegedCheckBox.Checked = Content.IsAllowedPrivileged;
     146          isPrivilegedCheckBox.Checked = Content.Job.IsPrivileged;
    148147          refreshAutomaticallyCheckBox.Checked = Content.RefreshAutomatically;
    149148          logView.Content = Content.Log;
     
    327326        runCollectionViewHost.Content = GetAllRunsFromJob(Content);
    328327      }
     328      isPrivilegedCheckBox.Checked = Content.Job.IsPrivileged;
    329329    }
    330330
     
    368368      else {
    369369        UpdateStateLogList();
    370       }
    371     }
    372     private void Content_IsAllowedPrivilegedChanged(object sender, EventArgs e) {
    373       if (InvokeRequired)
    374         Invoke(new EventHandler(Content_IsAllowedPrivilegedChanged), sender, e);
    375       else {
    376         isPrivilegedCheckBox.Checked = Content.IsAllowedPrivileged;
    377         SetEnabledStateOfControls();
    378370      }
    379371    }
     
    478470
    479471    private void isPrivilegedCheckBox_CheckChanged(object sender, EventArgs e) {
    480       if (Content != null && !SuppressEvents) Content.IsAllowedPrivileged = isPrivilegedCheckBox.Checked;
     472      if (Content != null && !SuppressEvents) Content.Job.IsPrivileged = isPrivilegedCheckBox.Checked;
    481473    }
    482474
Note: See TracChangeset for help on using the changeset viewer.