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

    r3362 r3430  
    3535      get { return (IStringConvertibleArray)base.Content; }
    3636      set { base.Content = value; }
     37    }
     38
     39    public override bool ReadOnly {
     40      get {
     41        if ((Content != null) && Content.ReadOnly) return true;
     42        return base.ReadOnly;
     43      }
     44      set { base.ReadOnly = value; }
    3745    }
    3846
     
    133141    }
    134142    private void lengthTextBox_Validated(object sender, EventArgs e) {
    135       Content.Length = int.Parse(lengthTextBox.Text);
     143      if (!Content.ReadOnly) Content.Length = int.Parse(lengthTextBox.Text);
    136144      errorProvider.SetError(lengthTextBox, string.Empty);
    137145    }
Note: See TracChangeset for help on using the changeset viewer.