Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/18/17 10:54:05 (7 years ago)
Author:
jkarder
Message:

#2788: added new setting for the maximum number of nested controls

File:
1 edited

Legend:

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

    r14185 r14995  
    2929  /// </summary>
    3030  public partial class ItemView : AsynchronousContentView {
    31     public const int MaximumNestingLevel = 35;
    32 
    3331    public new IItem Content {
    3432      get { return (IItem)base.Content; }
     
    4644      base.OnInitialized(e);
    4745
    48       if (CountParentControls() > MaximumNestingLevel) {
     46      if (CountParentControls() > Properties.Settings.Default.MaximumNestedControls) {
    4947        //capture content, needed because it is set at a later time
    5048        NestingLevelErrorControl errorControl = new NestingLevelErrorControl(() => Content, this.GetType());
Note: See TracChangeset for help on using the changeset viewer.