Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/19/10 03:28:16 (14 years ago)
Author:
swagner
Message:

Restricted types of child operators in MultiOperator (#979)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/AlgorithmView.cs

    r3367 r3407  
    176176        problemTypeSelectorDialog = new TypeSelectorDialog();
    177177        problemTypeSelectorDialog.Caption = "Select Problem";
     178        problemTypeSelectorDialog.TypeSelector.Caption = "Available Problems";
    178179        problemTypeSelectorDialog.TypeSelector.Configure(Content.ProblemType, false, false);
    179180      }
    180181      if (problemTypeSelectorDialog.ShowDialog(this) == DialogResult.OK) {
    181         Content.Problem = (IProblem)problemTypeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType();
     182        try {
     183          Content.Problem = (IProblem)problemTypeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType();
     184        }
     185        catch (Exception ex) {
     186          Auxiliary.ShowErrorMessageBox(ex);
     187        }
    182188      }
    183189    }
Note: See TracChangeset for help on using the changeset viewer.