Changeset 14995


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

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

Location:
trunk/sources/HeuristicLab.Core.Views/3.3
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core.Views/3.3/HeuristicLab.Core.Views-3.3.csproj

    r13573 r14995  
    122122  </ItemGroup>
    123123  <ItemGroup>
     124    <None Include="app.config" />
    124125    <None Include="Plugin.cs.frame" />
    125126    <Compile Include="BreadcrumbViewHost.cs">
     
    172173    </Compile>
    173174    <Compile Include="Plugin.cs" />
     175    <Compile Include="Properties\Settings.Designer.cs">
     176      <AutoGen>True</AutoGen>
     177      <DesignTimeSharedInput>True</DesignTimeSharedInput>
     178      <DependentUpon>Settings.settings</DependentUpon>
     179    </Compile>
    174180    <Compile Include="VariableValueView.cs">
    175181      <SubType>UserControl</SubType>
     
    329335      <DependentUpon>VariableView.cs</DependentUpon>
    330336    </Compile>
     337    <None Include="Properties\Settings.settings">
     338      <Generator>SettingsSingleFileGenerator</Generator>
     339      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
     340    </None>
    331341  </ItemGroup>
    332342  <ItemGroup>
  • 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.