Changeset 4435 for trunk/sources/HeuristicLab.Optimization.Views
- Timestamp:
- 09/19/10 19:43:05 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Optimization.Views/3.3
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Views/3.3/ResultView.cs
r3904 r4435 45 45 46 46 public override bool ReadOnly { 47 get { return base.ReadOnly; }47 get { return true; } 48 48 set { /*not needed because results are always readonly */} 49 49 } … … 54 54 public ResultView() { 55 55 InitializeComponent(); 56 base.ReadOnly = true;57 56 } 58 57 … … 91 90 dataTypeTextBox.Enabled = Content != null; 92 91 viewHost.Enabled = Content != null; 92 viewHost.ReadOnly = this.ReadOnly; 93 93 } 94 94 -
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionComparisonConstraintView.cs
r4068 r4435 86 86 protected override void SetEnabledStateOfControls() { 87 87 base.SetEnabledStateOfControls(); 88 txtConstraintData.ReadOnly = Content == null || this.ReadOnly; 88 txtConstraintData.Enabled = Content != null; 89 txtConstraintData.ReadOnly = ReadOnly; 89 90 } 90 91 -
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionConstraintView.cs
r4152 r4435 83 83 protected override void SetEnabledStateOfControls() { 84 84 base.SetEnabledStateOfControls(); 85 cmbConstraintColumn.Enabled = !this.ReadOnly && !this.Locked &&Content != null;86 cmbConstraintOperation.Enabled = !this.ReadOnly && !this.Locked &&Content != null;85 cmbConstraintColumn.Enabled = !this.ReadOnly && Content != null; 86 cmbConstraintOperation.Enabled = !this.ReadOnly && Content != null; 87 87 chbActive.Enabled = !this.Locked && Content != null; 88 88 } -
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionEqualityConstraintView.cs
r4152 r4435 45 45 protected override void SetEnabledStateOfControls() { 46 46 base.SetEnabledStateOfControls(); 47 txtConstraintData.ReadOnly = Content == null || this.ReadOnly; 47 txtConstraintData.Enabled = Content != null; 48 txtConstraintData.ReadOnly = ReadOnly; 48 49 } 49 50 -
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionTabularView.cs
r4200 r4435 35 35 public RunCollectionTabularView() { 36 36 InitializeComponent(); 37 base.ReadOnly = true;38 37 } 39 38 40 39 public override bool ReadOnly { 41 get { return base.ReadOnly; }40 get { return true; } 42 41 set { /*not needed because results are always readonly */} 43 42 }
Note: See TracChangeset
for help on using the changeset viewer.