Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/21/11 03:53:10 (14 years ago)
Author:
swagner
Message:

Worked on OKB (#1174)

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  
    5959      this.problemLabel.Name = "problemLabel";
    6060      this.problemLabel.Size = new System.Drawing.Size(48, 13);
    61       this.problemLabel.TabIndex = 7;
     61      this.problemLabel.TabIndex = 0;
    6262      this.problemLabel.Text = "&Problem:";
    6363      //
     
    7171      this.problemComboBox.Name = "problemComboBox";
    7272      this.problemComboBox.Size = new System.Drawing.Size(551, 21);
    73       this.problemComboBox.TabIndex = 8;
     73      this.problemComboBox.TabIndex = 1;
    7474      this.problemComboBox.SelectedValueChanged += new System.EventHandler(this.problemComboBox_SelectedValueChanged);
    7575      //
     
    8080      this.refreshButton.Name = "refreshButton";
    8181      this.refreshButton.Size = new System.Drawing.Size(24, 24);
    82       this.refreshButton.TabIndex = 4;
     82      this.refreshButton.TabIndex = 2;
    8383      this.toolTip.SetToolTip(this.refreshButton, "Refresh Problems");
    8484      this.refreshButton.UseVisualStyleBackColor = true;
     
    9797      this.viewHost.ReadOnly = false;
    9898      this.viewHost.Size = new System.Drawing.Size(638, 422);
    99       this.viewHost.TabIndex = 9;
     99      this.viewHost.TabIndex = 3;
    100100      this.viewHost.ViewsLabelVisible = true;
    101101      this.viewHost.ViewType = null;
  • branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/Views/OKBProblemView.cs

    r5338 r5344  
    122122    private void problemComboBox_SelectedValueChanged(object sender, System.EventArgs e) {
    123123      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      }
    125129    }
    126130    #endregion
Note: See TracChangeset for help on using the changeset viewer.