Changeset 3915 for trunk/sources/HeuristicLab.MainForm.WindowsForms
- Timestamp:
- 06/11/10 13:06:42 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/ContentView.cs
r3904 r3915 43 43 get { return content; } 44 44 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())) 46 48 throw new ArgumentException(string.Format("View \"{0}\" cannot view object \"{1}\".", this.GetType().Name, value.GetType().Name)); 47 49 if (InvokeRequired) {
Note: See TracChangeset
for help on using the changeset viewer.