Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/16/10 01:49:10 (14 years ago)
Author:
swagner
Message:

Adapted views of HeuristicLab.Core.Views according the new read-only property and renamed method SetEnableStateOfControls into SetEnabledStateOfControls (#973).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core.Views/3.3/NamedItemView.cs

    r3350 r3362  
    7474        toolTip.SetToolTip(descriptionTextBox, Content.Description);
    7575      }
    76       SetEnableStateOfControls();
     76      SetEnabledStateOfControls();
    7777    }
    7878
    7979    protected override void OnReadOnlyChanged() {
    8080      base.OnReadOnlyChanged();
    81       SetEnableStateOfControls();
     81      SetEnabledStateOfControls();
    8282    }
    83     private void SetEnableStateOfControls() {
     83    private void SetEnabledStateOfControls() {
    8484      if (Content == null) {
    8585        nameTextBox.Enabled = false;
     
    137137
    138138    protected void descriptionTextBox_DoubleClick(object sender, EventArgs e) {
    139       using (TextDialog dialog = new TextDialog("Description of " + Content.Name, Content.Description, !Content.CanChangeDescription)) {
     139      using (TextDialog dialog = new TextDialog("Description of " + Content.Name, Content.Description, ReadOnly || !Content.CanChangeDescription)) {
    140140        if (dialog.ShowDialog(this) == DialogResult.OK)
    141141          Content.Description = dialog.Content;
Note: See TracChangeset for help on using the changeset viewer.