- Timestamp:
- 04/21/10 06:14:03 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.3/GraphicalSymbolicExpressionTreeView.cs
r3294 r3454 60 60 symbolicExpressionTreeChart.Tree = Content; 61 61 } 62 SetEnabledStateOfControls(); 63 } 64 65 protected override void OnReadOnlyChanged() { 66 base.OnReadOnlyChanged(); 67 SetEnabledStateOfControls(); 68 } 69 70 private void SetEnabledStateOfControls() { 71 symbolicExpressionTreeChart.Enabled = Content != null; 62 72 } 63 73 } -
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.3/SymbolicExpressionView.cs
r3442 r3454 35 35 Caption = "SymbolicExpression View"; 36 36 textBox.Text = string.Empty; 37 textBox.Enabled = false;38 37 } else { 39 38 textBox.Text = SymbolicExpression(Content.Root, 0); 40 textBox.Enabled = true;41 39 } 40 SetEnabledStateOfControls(); 41 } 42 43 protected override void OnReadOnlyChanged() { 44 base.OnReadOnlyChanged(); 45 SetEnabledStateOfControls(); 46 } 47 48 private void SetEnabledStateOfControls() { 49 textBox.Enabled = Content != null; 50 textBox.ReadOnly = ReadOnly; 42 51 } 43 52
Note: See TracChangeset
for help on using the changeset viewer.