Changeset 8085 for branches/GP-MoveOperators/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs
- Timestamp:
- 06/21/12 18:02:33 (12 years ago)
- Location:
- branches/GP-MoveOperators
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP-MoveOperators
- Property svn:ignore
-
old new 20 20 bin 21 21 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/GP-MoveOperators/HeuristicLab.Clients.Hive.JobManager/3.3
- Property svn:ignore
-
old new 2 2 obj 3 3 *.vs10x 4 *.user
-
- Property svn:ignore
-
branches/GP-MoveOperators/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs
r7782 r8085 23 23 using System.ComponentModel; 24 24 using System.Linq; 25 using System.Text; 25 26 using System.Threading; 26 27 using System.Threading.Tasks; … … 42 43 public partial class RefreshableHiveJobView : HeuristicLab.Core.Views.ItemView { 43 44 private ProgressView progressView; 45 private HiveResourceSelectorDialog hiveResourceSelectorDialog; 44 46 45 47 public new RefreshableJob Content { … … 149 151 this.nameTextBox.ReadOnly = !Content.IsControllable || Content.ExecutionState != ExecutionState.Prepared || alreadyUploaded; 150 152 this.resourceNamesTextBox.ReadOnly = !Content.IsControllable || Content.ExecutionState != ExecutionState.Prepared || alreadyUploaded; 153 this.searchButton.Enabled = Content.IsControllable && !(Content.ExecutionState != ExecutionState.Prepared || alreadyUploaded); 151 154 this.jobsTreeView.ReadOnly = !Content.IsControllable || Content.ExecutionState != ExecutionState.Prepared || alreadyUploaded; 152 155 … … 332 335 333 336 #region Control events 337 private void searchButton_Click(object sender, EventArgs e) { 338 if (hiveResourceSelectorDialog == null) 339 hiveResourceSelectorDialog = new HiveResourceSelectorDialog(); 340 if (hiveResourceSelectorDialog.ShowDialog(this) == DialogResult.OK) { 341 StringBuilder sb = new StringBuilder(); 342 foreach (Resource resource in hiveResourceSelectorDialog.GetSelectedResources()) { 343 sb.Append(resource.Name); 344 sb.Append("; "); 345 } 346 resourceNamesTextBox.Text = sb.ToString(); 347 } 348 } 349 334 350 private void startButton_Click(object sender, EventArgs e) { 335 351 if (nameTextBox.Text.Trim() == string.Empty) {
Note: See TracChangeset
for help on using the changeset viewer.