Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/21/10 06:14:03 (14 years ago)
Author:
swagner
Message:

Adapted views according the new read-only property (#973)

File:
1 edited

Legend:

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

    r3448 r3454  
    101101    }
    102102    private void SetEnabledStateOfControls() {
    103       if (Content == null) {
    104         rowsTextBox.Enabled = false;
    105         columnsTextBox.Enabled = false;
    106         dataGridView.Enabled = false;
    107       } else {
    108         rowsTextBox.Enabled = true;
    109         columnsTextBox.Enabled = true;
    110         dataGridView.Enabled = true;
    111         rowsTextBox.ReadOnly = ReadOnly;
    112         columnsTextBox.ReadOnly = ReadOnly;
    113         dataGridView.ReadOnly = ReadOnly;
    114       }
     103      rowsTextBox.Enabled = Content != null;
     104      columnsTextBox.Enabled = Content != null;
     105      dataGridView.Enabled = Content != null;
     106      rowsTextBox.ReadOnly = ReadOnly;
     107      columnsTextBox.ReadOnly = ReadOnly;
     108      dataGridView.ReadOnly = ReadOnly;
    115109    }
    116110
Note: See TracChangeset for help on using the changeset viewer.