Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/05/13 10:50:47 (11 years ago)
Author:
mkommend
Message:

#2081: Updated branches from trunk and implemented all review comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Data Path DataTypes/HeuristicLab.Data.Views/3.3/Path Views/DirectoryValueView.cs

    r9680 r9697  
    4747    protected override void SetEnabledStateOfControls() {
    4848      base.SetEnabledStateOfControls();
    49       valueTextBox.ReadOnly = Locked || ReadOnly || Content == null || Content.CheckExistence;
     49      valueTextBox.Enabled = !Locked && !ReadOnly && Content != null;
     50      valueTextBox.ReadOnly = Locked || ReadOnly || Content == null;
    5051      openButton.Enabled = !Locked && !ReadOnly && Content != null;
    5152    }
     
    6465    protected virtual void openButton_Click(object sender, EventArgs e) {
    6566      if (folderBrowserDialog.ShowDialog(this) != DialogResult.OK) return;
    66 
    67       valueTextBox.Text = folderBrowserDialog.SelectedPath;
    68       valueTextBox.Focus();
    69       Validate();
     67      Content.Value = folderBrowserDialog.SelectedPath;
    7068    }
    7169  }
Note: See TracChangeset for help on using the changeset viewer.