Ignore:
Timestamp:
04/12/19 10:32:44 (11 months ago)
Author:
chaider
Message:

#2971
-Fixed Dispose problem
-Added event handling for item selection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4/IntervalConstraintView.cs

    r16776 r16777  
    8686        variableInput.Text = Content.Variable;
    8787        numberderivationInput.Text = Content.NumberOfDerivation.ToString();
     88        ischeckedCheckBox.Checked = Content.IsChecked;
     89        //Content.Changed += Content_Changed;
     90
    8891      }
    8992      SetEnabledStateOfControls();
     
    116119    #endregion
    117120
    118     #region content event handlers
     121    #region control event handlers
    119122
    120123    private void numberderivationInput_Validating(object sender, CancelEventArgs e) {
     
    196199
    197200    private void inclupperboundInput_CheckedChanged(object sender, EventArgs e) {
    198       if (Content.InclusiveUpperBound != incllowerboundInput.Checked) {
    199         Content.InclusiveUpperBound = incllowerboundInput.Checked;
    200         UpdateExpression();
    201       }
    202     }
     201      if (Content.InclusiveUpperBound != inclupperboundInput.Checked) {
     202        Content.InclusiveUpperBound = inclupperboundInput.Checked;
     203        UpdateExpression();
     204      }
     205    }
     206
     207    private void ischeckedCheckBox_CheckStateChanged(object sender, EventArgs e) {
     208      if (Content.IsChecked != ischeckedCheckBox.Checked) {
     209        Content.IsChecked = ischeckedCheckBox.Checked;
     210        UpdateControls();
     211      }
     212    }
     213
    203214    #endregion
    204215
    205 
     216    #region content event handlers
     217
     218    private void Content_Changed(object sender, EventArgs e) {
     219      UpdateControls();
     220    }
     221
     222    #endregion
    206223  }
    207224}
Note: See TracChangeset for help on using the changeset viewer.