Changeset 2676 for trunk/sources/HeuristicLab.Core.Views/3.3/ObjectView.cs
- Timestamp:
- 01/25/10 02:34:23 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/ObjectView.cs
r2664 r2676 28 28 using System.Xml; 29 29 using System.Windows.Forms; 30 using HeuristicLab.MainForm; 30 31 using HeuristicLab.MainForm.WindowsForms; 31 32 … … 44 45 public object Object { 45 46 get { return obj; } 46 protected set { 47 set { 48 if ((value != null) && (!MainFormManager.ViewCanViewObject(this, value))) 49 throw new ArgumentException(string.Format("View \"{0}\" cannot view object \"{1}\".", this.GetType().Name, value.GetType().Name)); 47 50 if (InvokeRequired) { 48 51 Invoke(new Action<object>(delegate(object o) { Object = o; }), value);
Note: See TracChangeset
for help on using the changeset viewer.