Changeset 6791 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.3/HiveTasks/HiveTaskView.cs
- Timestamp:
- 09/16/11 20:19:53 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Views/3.3/HiveTasks/HiveTaskView.cs
r6743 r6791 93 93 this.jobIdTextBox.Text = Content.Task.Id.ToString(); 94 94 this.dateCreatedTextBox.Text = Content.Task.DateCreated.HasValue ? Content.Task.DateCreated.ToString() : string.Empty; 95 this.priority TextBox.Text = Content.Task.Priority.ToString();96 this.coresNeeded TextBox.Text = Content.Task.CoresNeeded.ToString();97 this.memoryNeeded TextBox.Text = Content.Task.MemoryNeeded.ToString();95 this.priorityComboBox.Text = Content.Task.Priority.ToString(); 96 this.coresNeededComboBox.Text = Content.Task.CoresNeeded.ToString(); 97 this.memoryNeededComboBox.Text = Content.Task.MemoryNeeded.ToString(); 98 98 } else { 99 99 this.jobIdTextBox.Text = string.Empty; 100 100 this.dateCreatedTextBox.Text = string.Empty; 101 this.priority TextBox.Text = string.Empty;102 this.coresNeeded TextBox.Text = string.Empty;103 this.memoryNeeded TextBox.Text = string.Empty;101 this.priorityComboBox.Text = "3"; 102 this.coresNeededComboBox.Text = "1"; 103 this.memoryNeededComboBox.Text = "256"; 104 104 } 105 105 } … … 113 113 protected virtual void Job_ItemChanged(object sender, EventArgs e) { 114 114 if (Content != null && Content.Task != null && Content.ItemTask.Item != null) { 115 optimizerItemView.Content = Content.ItemTask.Item; 116 } else { 117 optimizerItemView.Content = null; 115 } else { 118 116 } 119 117 } … … 196 194 this.lastUpdatedTextBox.ReadOnly = true; 197 195 198 this.priority TextBox.ReadOnly =this.ReadOnly;199 this.coresNeeded TextBox.ReadOnly =this.ReadOnly;200 this.memoryNeeded TextBox.ReadOnly =this.ReadOnly;196 this.priorityComboBox.Enabled = !this.ReadOnly; 197 this.coresNeededComboBox.Enabled = !this.ReadOnly; 198 this.memoryNeededComboBox.Enabled = !this.ReadOnly; 201 199 this.computeInParallelCheckBox.Enabled = !this.ReadOnly && this.Content != null && this.Content.ItemTask != null && this.Content.ItemTask.IsParallelizable; 202 200 203 201 this.modifyItemButton.Enabled = (Content != null && Content.ItemTask.Item != null && (Content.Task.State == TaskState.Paused || Content.Task.State == TaskState.Offline || Content.Task.State == TaskState.Finished || Content.Task.State == TaskState.Failed || Content.Task.State == TaskState.Aborted)); 204 205 optimizerItemView.ReadOnly = true;206 202 } 207 203 }
Note: See TracChangeset
for help on using the changeset viewer.