Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7929 for branches


Ignore:
Timestamp:
05/29/12 23:11:44 (12 years ago)
Author:
ascheibe
Message:

#1174 fixed OKB for ContentView unit test

Location:
branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/Administration/Views
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/Administration/Views/AlgorithmView.cs

    r7427 r7929  
    6363
    6464      platformComboBox.SelectedValueChanged -= new EventHandler(platformComboBox_SelectedValueChanged);
    65       platformComboBoxValues = AdministrationClient.Instance.Platforms.ToList();
     65      if (AdministrationClient.Instance.Platforms != null)
     66        platformComboBoxValues = AdministrationClient.Instance.Platforms.ToList();
    6667      platformComboBox.DataSource = platformComboBoxValues;
    6768      platformComboBox.SelectedValueChanged += new EventHandler(platformComboBox_SelectedValueChanged);
    6869
    6970      algorithmClassComboBox.SelectedValueChanged -= new EventHandler(algorithmClassComboBox_SelectedValueChanged);
    70       algorithmClassComboBoxValues = AdministrationClient.Instance.AlgorithmClasses.ToList();
     71      if (AdministrationClient.Instance.AlgorithmClasses != null)
     72        algorithmClassComboBoxValues = AdministrationClient.Instance.AlgorithmClasses.ToList();
    7173      algorithmClassComboBox.DataSource = algorithmClassComboBoxValues;
    7274      algorithmClassComboBox.SelectedValueChanged += new EventHandler(algorithmClassComboBox_SelectedValueChanged);
  • branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/Administration/Views/ProblemView.cs

    r7427 r7929  
    6363
    6464      platformComboBox.SelectedValueChanged -= new EventHandler(platformComboBox_SelectedValueChanged);
    65       platformComboBoxValues = AdministrationClient.Instance.Platforms.ToList();
     65      if (AdministrationClient.Instance.Platforms != null)
     66        platformComboBoxValues = AdministrationClient.Instance.Platforms.ToList();
    6667      platformComboBox.DataSource = platformComboBoxValues;
    6768      platformComboBox.SelectedValueChanged += new EventHandler(platformComboBox_SelectedValueChanged);
    6869
    6970      problemClassComboBox.SelectedValueChanged -= new EventHandler(problemClassComboBox_SelectedValueChanged);
    70       problemClassComboBoxValues = AdministrationClient.Instance.ProblemClasses.ToList();
     71      if (AdministrationClient.Instance.ProblemClasses != null)
     72        problemClassComboBoxValues = AdministrationClient.Instance.ProblemClasses.ToList();
    7173      problemClassComboBox.DataSource = problemClassComboBoxValues;
    7274      problemClassComboBox.SelectedValueChanged += new EventHandler(problemClassComboBox_SelectedValueChanged);
Note: See TracChangeset for help on using the changeset viewer.