Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/20/10 02:02:39 (14 years ago)
Author:
swagner
Message:

Added ReadOnly property to all items of HeuristicLab.Data (#969)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Data.Views/3.3/BoolValueView.cs

    r3362 r3430  
    3232      get { return (BoolValue)base.Content; }
    3333      set { base.Content = value; }
     34    }
     35
     36    public override bool ReadOnly {
     37      get {
     38        if ((Content != null) && Content.ReadOnly) return true;
     39        return base.ReadOnly;
     40      }
     41      set { base.ReadOnly = value; }
    3442    }
    3543
     
    8290
    8391    private void valueCheckBox_CheckedChanged(object sender, EventArgs e) {
    84       Content.Value = valueCheckBox.Checked;
     92      if (!Content.ReadOnly) Content.Value = valueCheckBox.Checked;
    8593    }
    8694  }
Note: See TracChangeset for help on using the changeset viewer.