Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/04/13 14:21:22 (12 years ago)
Author:
ascheibe
Message:

#1950 fixed handling of IsAllowedPrivileged in the Hive Job Manager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs

    r9097 r9107  
    140140          executionTimeTextBox.Text = Content.ExecutionTime.ToString();
    141141          resourceNamesTextBox.Text = Content.Job.ResourceNames;
    142           isPrivilegedCheckBox.Checked = Content.Job.IsPrivileged;
     142          isPrivilegedCheckBox.Checked = Content.IsAllowedPrivileged;
    143143          refreshAutomaticallyCheckBox.Checked = Content.RefreshAutomatically;
    144144          logView.Content = Content.Log;
     
    178178        this.jobsTreeView.ReadOnly = !Content.IsControllable || Content.ExecutionState != ExecutionState.Prepared || alreadyUploaded || Content.IsProgressing;
    179179
    180         this.isPrivilegedCheckBox.Enabled = Content.IsAllowedPrivileged && Content.IsControllable && !(Content.ExecutionState != ExecutionState.Prepared || alreadyUploaded) && !Content.IsProgressing;
     180        this.isPrivilegedCheckBox.Enabled = HiveClient.Instance.IsAllowedPrivileged && Content.IsControllable && !(Content.ExecutionState != ExecutionState.Prepared || alreadyUploaded) && !Content.IsProgressing;
    181181        this.refreshAutomaticallyCheckBox.Enabled = Content.IsControllable && alreadyUploaded && jobsLoaded && Content.ExecutionState == ExecutionState.Started && !Content.IsProgressing;
    182182        this.refreshButton.Enabled = Content.IsDownloadable && alreadyUploaded && !Content.IsProgressing;
     
    345345        Invoke(new EventHandler(Content_IsAllowedPrivilegedChanged), sender, e);
    346346      else {
     347        isPrivilegedCheckBox.Checked = Content.IsAllowedPrivileged;
    347348        SetEnabledStateOfControls();
    348349      }
     
    447448    }
    448449
    449     private void isPrivilegedCheckBox_Validated(object sender, EventArgs e) {
    450       if (Content != null && !SuppressEvents) Content.Job.IsPrivileged = isPrivilegedCheckBox.Checked;
     450    private void isPrivilegedCheckBox_CheckChanged(object sender, EventArgs e) {
     451      if (Content != null && !SuppressEvents) Content.IsAllowedPrivileged = isPrivilegedCheckBox.Checked;
    451452    }
    452453
Note: See TracChangeset for help on using the changeset viewer.