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/StringConvertibleValueView.cs

    r3402 r3430  
    3333      get { return (IStringConvertibleValue)base.Content; }
    3434      set { base.Content = value; }
     35    }
     36
     37    public override bool ReadOnly {
     38      get {
     39        if ((Content != null) && Content.ReadOnly) return true;
     40        return base.ReadOnly;
     41      }
     42      set { base.ReadOnly = value; }
    3543    }
    3644
     
    103111    }
    104112    private void valueTextBox_Validated(object sender, EventArgs e) {
    105       Content.SetValue(valueTextBox.Text);
     113      if (!Content.ReadOnly) Content.SetValue(valueTextBox.Text);
    106114      errorProvider.SetError(valueTextBox, string.Empty);
    107115      valueTextBox.Text = Content.GetValue();
Note: See TracChangeset for help on using the changeset viewer.