Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9664 for trunk


Ignore:
Timestamp:
06/28/13 10:44:51 (11 years ago)
Author:
mkommend
Message:

#2079: Changed access modifiers of members in StringConvertibleValueView from private to protected to allow subclassing.

Location:
trunk/sources/HeuristicLab.Data.Views/3.3
Files:
2 edited

Legend:

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

    r9456 r9664  
    124124    #endregion
    125125
    126     private System.Windows.Forms.TextBox valueTextBox;
    127     private System.Windows.Forms.ErrorProvider errorProvider;
    128     private System.Windows.Forms.Label valueLabel;
    129     private System.Windows.Forms.SplitContainer splitContainer;
     126    protected System.Windows.Forms.TextBox valueTextBox;
     127    protected System.Windows.Forms.ErrorProvider errorProvider;
     128    protected System.Windows.Forms.Label valueLabel;
     129    protected System.Windows.Forms.SplitContainer splitContainer;
    130130  }
    131131}
  • trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleValueView.cs

    r9456 r9664  
    7878    }
    7979
    80     private void Content_ValueChanged(object sender, EventArgs e) {
     80    protected virtual void Content_ValueChanged(object sender, EventArgs e) {
    8181      if (InvokeRequired)
    8282        Invoke(new EventHandler(Content_ValueChanged), sender, e);
     
    8585    }
    8686
    87     private void valueTextBox_KeyDown(object sender, KeyEventArgs e) {
     87    protected virtual void valueTextBox_KeyDown(object sender, KeyEventArgs e) {
    8888      if ((e.KeyCode == Keys.Enter) || (e.KeyCode == Keys.Return))
    8989        valueLabel.Select();  // select label to validate data
     
    9494      }
    9595    }
    96     private void valueTextBox_Validating(object sender, CancelEventArgs e) {
     96    protected virtual void valueTextBox_Validating(object sender, CancelEventArgs e) {
    9797      if (ReadOnly) return;
    9898      string errorMessage;
     
    103103      }
    104104    }
    105     private void valueTextBox_Validated(object sender, EventArgs e) {
     105    protected virtual void valueTextBox_Validated(object sender, EventArgs e) {
    106106      if (ReadOnly) return;
    107107      if (!Content.ReadOnly) Content.SetValue(valueTextBox.Text);
Note: See TracChangeset for help on using the changeset viewer.