- Timestamp:
- 01/21/11 03:53:10 (14 years ago)
- Location:
- branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/Views
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/Views/OKBProblemView.Designer.cs
r5338 r5344 59 59 this.problemLabel.Name = "problemLabel"; 60 60 this.problemLabel.Size = new System.Drawing.Size(48, 13); 61 this.problemLabel.TabIndex = 7;61 this.problemLabel.TabIndex = 0; 62 62 this.problemLabel.Text = "&Problem:"; 63 63 // … … 71 71 this.problemComboBox.Name = "problemComboBox"; 72 72 this.problemComboBox.Size = new System.Drawing.Size(551, 21); 73 this.problemComboBox.TabIndex = 8;73 this.problemComboBox.TabIndex = 1; 74 74 this.problemComboBox.SelectedValueChanged += new System.EventHandler(this.problemComboBox_SelectedValueChanged); 75 75 // … … 80 80 this.refreshButton.Name = "refreshButton"; 81 81 this.refreshButton.Size = new System.Drawing.Size(24, 24); 82 this.refreshButton.TabIndex = 4;82 this.refreshButton.TabIndex = 2; 83 83 this.toolTip.SetToolTip(this.refreshButton, "Refresh Problems"); 84 84 this.refreshButton.UseVisualStyleBackColor = true; … … 97 97 this.viewHost.ReadOnly = false; 98 98 this.viewHost.Size = new System.Drawing.Size(638, 422); 99 this.viewHost.TabIndex = 9;99 this.viewHost.TabIndex = 3; 100 100 this.viewHost.ViewsLabelVisible = true; 101 101 this.viewHost.ViewType = null; -
branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/Views/OKBProblemView.cs
r5338 r5344 122 122 private void problemComboBox_SelectedValueChanged(object sender, System.EventArgs e) { 123 123 Problem problem = problemComboBox.SelectedValue as Problem; 124 if ((problem != null) && (Content != null)) Content.Load(problem.Id); 124 if ((problem != null) && (Content != null)) { 125 Content.Load(problem.Id); 126 if (Content.ProblemId != problem.Id) // reset selected item if load was not successful 127 problemComboBox.SelectedItem = OKBClient.Instance.Problems.FirstOrDefault(x => x.Id == Content.ProblemId); 128 } 125 129 } 126 130 #endregion
Note: See TracChangeset
for help on using the changeset viewer.