Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/24/10 10:39:33 (13 years ago)
Author:
mkommend
Message:

Added the LabelVisible property to the StringConvertibleValueView (ticket #1201).

File:
1 edited

Legend:

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

    r3904 r4485  
    4141      }
    4242      set { base.ReadOnly = value; }
     43    }
     44
     45    public bool LabelVisible {
     46      get { return valueLabel.Visible; }
     47      set { valueLabel.Visible = value; }
    4348    }
    4449
     
    101106      valueTextBox.Text = Content.GetValue();
    102107    }
     108
     109    private void valueLabel_VisibleChanged(object sender, EventArgs e) {
     110      if (valueLabel.Visible)
     111        valueTextBox.Dock = DockStyle.None;
     112      else
     113        valueTextBox.Dock = DockStyle.Fill;
     114    }
     115
    103116  }
    104117}
Note: See TracChangeset for help on using the changeset viewer.