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.Core.Views/3.3/VariableView.cs

    r3362 r3407  
    123123      if (typeSelectorDialog == null) {
    124124        typeSelectorDialog = new TypeSelectorDialog();
    125         typeSelectorDialog.Caption = "Select Value Type";
     125        typeSelectorDialog.Caption = "Select Value";
    126126        typeSelectorDialog.TypeSelector.Configure(typeof(IItem), false, false);
    127127      }
    128128      if (typeSelectorDialog.ShowDialog(this) == DialogResult.OK) {
    129         Content.Value = (IItem)typeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType();
     129        try {
     130          Content.Value = (IItem)typeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType();
     131        }
     132        catch (Exception ex) {
     133          Auxiliary.ShowErrorMessageBox(ex);
     134        }
    130135      }
    131136    }
Note: See TracChangeset for help on using the changeset viewer.