Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/25/10 02:34:23 (15 years ago)
Author:
swagner
Message:

Operator architecture refactoring (#95)

  • continued work on adapting and refactoring HeuristicLab.Data according to the changes in HeuristicLab.Core
  • unified visual appearance of views
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core.Views/3.3/ObjectView.cs

    r2664 r2676  
    2828using System.Xml;
    2929using System.Windows.Forms;
     30using HeuristicLab.MainForm;
    3031using HeuristicLab.MainForm.WindowsForms;
    3132
     
    4445    public object Object {
    4546      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));
    4750        if (InvokeRequired) {
    4851          Invoke(new Action<object>(delegate(object o) { Object = o; }), value);
Note: See TracChangeset for help on using the changeset viewer.