Changeset 6721 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.3/HiveJobs/HiveJobView.cs
- Timestamp:
- 09/08/11 13:41:25 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.3/HiveJobs/HiveJobView.cs
r6419 r6721 47 47 Content.ItemJobChanged += new EventHandler(Content_JobItemChanged); 48 48 Content.JobChanged += new EventHandler(Content_JobChanged); 49 Content.JobStateChanged += new EventHandler(Content_ JobStateChanged);49 Content.JobStateChanged += new EventHandler(Content_TaskStateChanged); 50 50 Content.StateLogChanged += new EventHandler(Content_StateLogChanged); 51 51 } … … 54 54 Content.ItemJobChanged -= new EventHandler(Content_JobItemChanged); 55 55 Content.JobChanged -= new EventHandler(Content_JobChanged); 56 Content.JobStateChanged -= new EventHandler(Content_ JobStateChanged);56 Content.JobStateChanged -= new EventHandler(Content_TaskStateChanged); 57 57 Content.StateLogChanged -= new EventHandler(Content_StateLogChanged); 58 58 base.DeregisterContentEvents(); … … 68 68 Content_JobItemChanged(this, EventArgs.Empty); 69 69 Content_JobChanged(this, EventArgs.Empty); 70 Content_ JobStateChanged(this, EventArgs.Empty);70 Content_TaskStateChanged(this, EventArgs.Empty); 71 71 } 72 72 … … 119 119 } 120 120 121 protected virtual void Content_ JobStateChanged(object sender, EventArgs e) {121 protected virtual void Content_TaskStateChanged(object sender, EventArgs e) { 122 122 if (InvokeRequired) { 123 Invoke(new EventHandler(Content_ JobStateChanged), sender, e);123 Invoke(new EventHandler(Content_TaskStateChanged), sender, e); 124 124 } else { 125 125 if (Content != null && Content.Job != null) { … … 201 201 this.computeInParallelCheckBox.Enabled = !this.ReadOnly && this.Content != null && this.Content.ItemJob != null && this.Content.ItemJob.IsParallelizable; 202 202 203 this.modifyItemButton.Enabled = (Content != null && Content.ItemJob.Item != null && (Content.Job.State == JobState.Paused || Content.Job.State == JobState.Offline || Content.Job.State == JobState.Finished || Content.Job.State == JobState.Failed || Content.Job.State == JobState.Aborted));203 this.modifyItemButton.Enabled = (Content != null && Content.ItemJob.Item != null && (Content.Job.State == TaskState.Paused || Content.Job.State == TaskState.Offline || Content.Job.State == TaskState.Finished || Content.Job.State == TaskState.Failed || Content.Job.State == TaskState.Aborted)); 204 204 205 205 optimizerItemView.ReadOnly = true;
Note: See TracChangeset
for help on using the changeset viewer.