Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/06/10 02:51:43 (14 years ago)
Author:
swagner
Message:

Worked on OKB (#1174)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/Views/DataTypeView.cs

    r4549 r4558  
    2121
    2222using System;
     23using System.Collections.Generic;
    2324using System.Linq;
    2425using System.Windows.Forms;
     
    3031  [Content(typeof(DataType), true)]
    3132  public partial class DataTypeView : OKBItemView {
     33    private List<Platform> platformComboBoxValues;
     34
    3235    public new DataType Content {
    3336      get { return (DataType)base.Content; }
     
    4144    protected override void OnInitialized(System.EventArgs e) {
    4245      base.OnInitialized(e);
    43       platformComboBox.DataSource = OKBClient.Instance.Platforms.ToList();
     46      platformComboBoxValues = OKBClient.Instance.Platforms.ToList();
     47      platformComboBox.DataSource = platformComboBoxValues;
    4448    }
    4549
     
    5761        nameTextBox.Text = Content.Name;
    5862        sqlNameComboBox.Text = Content.SqlName;
    59         platformComboBox.SelectedItem = OKBClient.Instance.Platforms.FirstOrDefault(p => p.Id == Content.PlatformId);
     63        platformComboBox.SelectedItem = platformComboBoxValues.FirstOrDefault(p => p.Id == Content.PlatformId);
    6064        Caption = Content.Name;
    6165      }
     
    8084          break;
    8185        case "PlatformId":
    82           platformComboBox.SelectedItem = OKBClient.Instance.Platforms.FirstOrDefault(p => p.Id == Content.PlatformId);
     86          platformComboBox.SelectedItem = platformComboBoxValues.FirstOrDefault(p => p.Id == Content.PlatformId);
    8387          break;
    8488      }
Note: See TracChangeset for help on using the changeset viewer.