Changeset 7910 for trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs
- Timestamp:
- 05/25/12 15:36:03 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs
r7782 r7910 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.