Changeset 7215 for branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.Views/3.3/HiveTasks/HiveTaskView.cs
- Timestamp:
- 12/20/11 13:54:57 (13 years ago)
- Location:
- branches/HeuristicLab.Hive.Azure
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive.Azure
- Property svn:ignore
-
old new 4 4 *.suo 5 5 *.vsp 6 Doxygen 6 7 Google.ProtocolBuffers-0.9.1.dll 7 8 HeuristicLab 3.3.5.1.ReSharper.user 8 9 HeuristicLab 3.3.6.0.ReSharper.user 9 10 HeuristicLab.4.5.resharper.user 11 HeuristicLab.ExtLibs.6.0.ReSharper.user 10 12 HeuristicLab.resharper.user 11 13 ProtoGen.exe … … 16 18 bin 17 19 protoc.exe 18 HeuristicLab.ExtLibs.6.0.ReSharper.user19 Doxygen
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.Views/3.3/HiveTasks/HiveTaskView.cs
r6976 r7215 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.priorityComboBox.Text = Content.Task.Priority.ToString(); 95 if (Content.Task.Priority >= 0 && Content.Task.Priority < priorityComboBox.Items.Count) { 96 this.priorityComboBox.SelectedIndex = Content.Task.Priority; 97 } else { 98 this.priorityComboBox.SelectedIndex = 0; 99 } 96 100 this.coresNeededComboBox.Text = Content.Task.CoresNeeded.ToString(); 97 101 this.memoryNeededComboBox.Text = Content.Task.MemoryNeeded.ToString(); … … 99 103 this.jobIdTextBox.Text = string.Empty; 100 104 this.dateCreatedTextBox.Text = string.Empty; 101 this.priorityComboBox. Text = "3";105 this.priorityComboBox.SelectedIndex = 0; 102 106 this.coresNeededComboBox.Text = "1"; 103 this.memoryNeededComboBox.Text = " 256";107 this.memoryNeededComboBox.Text = "128"; 104 108 } 105 109 } … … 201 205 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)); 202 206 } 207 208 private void priorityComboBox_SelectedIndexChanged(object sender, EventArgs e) { 209 if (Content.Task.Priority != priorityComboBox.SelectedIndex) { 210 Content.Task.Priority = priorityComboBox.SelectedIndex; 211 } 212 } 203 213 } 204 214 }
Note: See TracChangeset
for help on using the changeset viewer.