Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/11/10 13:06:42 (14 years ago)
Author:
mkommend
Message:

implemented InteractiveSymbolicRegressionSolutionSimplifierView and fixed lots of minor bugs in the DataAnalysis and DataAnalysis.Views project (ticket #1010)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/ContentView.cs

    r3904 r3915  
    4343      get { return content; }
    4444      set {
    45         if ((value != null) && (!MainFormManager.ViewCanViewContent(this, value)))
     45        //check if the ContentView is tagged with a corresponding ContentAttribute for the type of the Content
     46        if ((value != null) && (!MainFormManager.ViewCanViewContent(this, value)) &&
     47          ContentAttribute.HasContentAttribute(this.GetType()))
    4648          throw new ArgumentException(string.Format("View \"{0}\" cannot view object \"{1}\".", this.GetType().Name, value.GetType().Name));
    4749        if (InvokeRequired) {
Note: See TracChangeset for help on using the changeset viewer.