Changeset 11677 for branches/ALPS/HeuristicLab.Core.Views
- Timestamp:
- 12/10/14 10:31:41 (10 years ago)
- Location:
- branches/ALPS
- Files:
-
- 4 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/ALPS
-
branches/ALPS/HeuristicLab.Core.Views/3.3/Clipboard.cs
r11171 r11677 24 24 using System.Collections.Generic; 25 25 using System.IO; 26 using System.IO.Compression; 26 27 using System.Linq; 27 28 using System.Threading; … … 198 199 i++; 199 200 SetEnabledStateOfContentViews(item, false); 200 XmlGenerator.Serialize(item, ItemsPath + Path.DirectorySeparatorChar + i.ToString("00000000") + ".hl", 9);201 XmlGenerator.Serialize(item, ItemsPath + Path.DirectorySeparatorChar + i.ToString("00000000") + ".hl", CompressionLevel.Optimal); 201 202 OnItemSaved(item, progressBar.Maximum / listView.Items.Count); 202 203 } -
branches/ALPS/HeuristicLab.Core.Views/3.3/HeuristicLab.Core.Views-3.3.csproj
r8600 r11677 11 11 <RootNamespace>HeuristicLab.Core.Views</RootNamespace> 12 12 <AssemblyName>HeuristicLab.Core.Views-3.3</AssemblyName> 13 <TargetFrameworkVersion>v4. 0</TargetFrameworkVersion>13 <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> 14 14 <TargetFrameworkProfile> 15 15 </TargetFrameworkProfile> … … 46 46 <WarningLevel>4</WarningLevel> 47 47 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> 48 <Prefer32Bit>false</Prefer32Bit> 48 49 </PropertyGroup> 49 50 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> … … 57 58 </DocumentationFile> 58 59 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> 60 <Prefer32Bit>false</Prefer32Bit> 59 61 </PropertyGroup> 60 62 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' "> … … 66 68 <ErrorReport>prompt</ErrorReport> 67 69 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> 70 <Prefer32Bit>false</Prefer32Bit> 68 71 </PropertyGroup> 69 72 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' "> … … 77 80 <ErrorReport>prompt</ErrorReport> 78 81 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> 82 <Prefer32Bit>false</Prefer32Bit> 79 83 </PropertyGroup> 80 84 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> … … 86 90 <ErrorReport>prompt</ErrorReport> 87 91 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> 92 <Prefer32Bit>false</Prefer32Bit> 88 93 </PropertyGroup> 89 94 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> … … 97 102 <ErrorReport>prompt</ErrorReport> 98 103 <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet> 104 <Prefer32Bit>false</Prefer32Bit> 99 105 </PropertyGroup> 100 106 <ItemGroup> … … 146 152 <Compile Include="LogView.Designer.cs"> 147 153 <DependentUpon>LogView.cs</DependentUpon> 154 </Compile> 155 <Compile Include="NestingLevelErrorControl.cs"> 156 <SubType>UserControl</SubType> 157 </Compile> 158 <Compile Include="NestingLevelErrorControl.Designer.cs"> 159 <DependentUpon>NestingLevelErrorControl.cs</DependentUpon> 148 160 </Compile> 149 161 <Compile Include="Plugin.cs" /> … … 378 390 --> 379 391 <PropertyGroup> 380 <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set Path=%25Path%25;$(ProjectDir);$(SolutionDir)392 <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set Path=%25Path%25;$(ProjectDir);$(SolutionDir) 381 393 set ProjectDir=$(ProjectDir) 382 394 set SolutionDir=$(SolutionDir) … … 385 397 call PreBuildEvent.cmd 386 398 </PreBuildEvent> 387 <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' ">399 <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' "> 388 400 export ProjectDir=$(ProjectDir) 389 401 export SolutionDir=$(SolutionDir) -
branches/ALPS/HeuristicLab.Core.Views/3.3/ItemView.cs
r11171 r11677 20 20 #endregion 21 21 22 using System; 23 using System.Windows.Forms; 22 24 using HeuristicLab.MainForm.WindowsForms; 23 25 … … 27 29 /// </summary> 28 30 public partial class ItemView : AsynchronousContentView { 31 public const int MaximumNestingLevel = 32; 32 29 33 public new IItem Content { 30 34 get { return (IItem)base.Content; } … … 38 42 InitializeComponent(); 39 43 } 44 45 protected override void OnInitialized(EventArgs e) { 46 base.OnInitialized(e); 47 48 if (CountParentControls() > MaximumNestingLevel) { 49 //capture content, needed because it is set at a later time 50 NestingLevelErrorControl errorControl = new NestingLevelErrorControl(() => Content, this.GetType()); 51 errorControl.Dock = DockStyle.Fill; 52 53 Controls.Clear(); 54 Controls.Add(errorControl); 55 } 56 } 57 58 private int CountParentControls() { 59 int cnt = 0; 60 Control parent = Parent; 61 while (parent != null) { 62 parent = parent.Parent; 63 cnt++; 64 } 65 return cnt; 66 } 40 67 } 41 68 }
Note: See TracChangeset
for help on using the changeset viewer.