Ignore:
Timestamp:
11/19/14 14:26:07 (8 years ago)
Author:
ascheibe
Message:

#2158 improved error handling for nested views

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core.Views/3.3/ItemView.cs

    r11555 r11557  
    4747
    4848      if (CountParentControls() > MaximumNestingLevel) {
    49         NestingLevelErrorControl errorControl = new NestingLevelErrorControl();
     49        //capture content, needed because it is set at a later time
     50        NestingLevelErrorControl errorControl = new NestingLevelErrorControl(() => Content, this.GetType());
    5051        errorControl.Dock = DockStyle.Fill;
    51         //capture content, needed because it is set at a later time
    52         errorControl.Content = () => Content;
    5352
    5453        Controls.Clear();
Note: See TracChangeset for help on using the changeset viewer.