Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8469


Ignore:
Timestamp:
08/10/12 16:39:07 (12 years ago)
Author:
abeham
Message:

#1916: prevented validation when view is readonly

File:
1 edited

Legend:

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

    r7259 r8469  
    9595    }
    9696    private void valueTextBox_Validating(object sender, CancelEventArgs e) {
     97      if (ReadOnly) return;
    9798      string errorMessage;
    9899      if (!Content.Validate(valueTextBox.Text, out errorMessage)) {
     
    103104    }
    104105    private void valueTextBox_Validated(object sender, EventArgs e) {
     106      if (ReadOnly) return;
    105107      if (!Content.ReadOnly) Content.SetValue(valueTextBox.Text);
    106108      errorProvider.SetError(valueTextBox, string.Empty);
Note: See TracChangeset for help on using the changeset viewer.