Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/03/13 23:20:36 (12 years ago)
Author:
ascheibe
Message:

#1950 removed IsAllowedPrivileged property from RefreshableJob as it's not needed anymore

File:
1 edited

Legend:

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

    r9223 r9436  
    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.