Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7008


Ignore:
Timestamp:
11/16/11 18:40:52 (13 years ago)
Author:
ascheibe
Message:

#1659 added an empty view for IBenchmark so that "No view available" won't be displayed in HL

Location:
trunk/sources/HeuristicLab.Algorithms.Benchmarks.Views/3.3
Files:
1 edited
3 copied

Legend:

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

    r7006 r7008  
    9999      <DependentUpon>BenchmarkView.cs</DependentUpon>
    100100    </Compile>
     101    <Compile Include="IBenchmarkView.cs">
     102      <SubType>UserControl</SubType>
     103    </Compile>
     104    <Compile Include="IBenchmarkView.Designer.cs">
     105      <DependentUpon>IBenchmarkView.cs</DependentUpon>
     106    </Compile>
    101107    <Compile Include="Plugin.cs" />
    102108    <Compile Include="Properties\AssemblyInfo.cs" />
     
    163169      <DependentUpon>BenchmarkView.cs</DependentUpon>
    164170    </EmbeddedResource>
     171    <EmbeddedResource Include="IBenchmarkView.resx">
     172      <DependentUpon>IBenchmarkView.cs</DependentUpon>
     173    </EmbeddedResource>
    165174  </ItemGroup>
    166175  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  • trunk/sources/HeuristicLab.Algorithms.Benchmarks.Views/3.3/IBenchmarkView.Designer.cs

    r7006 r7008  
    2121
    2222namespace HeuristicLab.Algorithms.Benchmarks.Views {
    23   partial class BenchmarkView {
     23  partial class IBenchmarkView {
    2424    /// <summary>
    2525    /// Required designer variable.
  • trunk/sources/HeuristicLab.Algorithms.Benchmarks.Views/3.3/IBenchmarkView.cs

    r7006 r7008  
    2222using System.Windows.Forms;
    2323using HeuristicLab.MainForm;
    24 using HeuristicLab.Optimization.Views;
     24using HeuristicLab.MainForm.WindowsForms;
    2525
    2626namespace HeuristicLab.Algorithms.Benchmarks.Views {
    27   [View("Benchmark View")]
    28   [Content(typeof(Benchmark), true)]
    29   public partial class BenchmarkView : AlgorithmView {
    30     public new Benchmark Content {
    31       get { return (Benchmark)base.Content; }
     27  [View("IBenchmark View")]
     28  [Content(typeof(IBenchmark), true)]
     29  public partial class IBenchmarkView : AsynchronousContentView {
     30    public new IBenchmark Content {
     31      get { return (IBenchmark)base.Content; }
    3232      set { base.Content = value; }
    3333    }
    34     public BenchmarkView() {
     34
     35    public IBenchmarkView() {
    3536      InitializeComponent();
    36       tabControl.TabPages.Remove(this.problemTabPage);
    3737    }
     38
    3839  }
    3940}
Note: See TracChangeset for help on using the changeset viewer.