- Timestamp:
- 04/15/10 01:34:27 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunView.cs
r3341 r3350 43 43 } 44 44 45 public override bool ReadOnly { 46 get { return base.ReadOnly; } 47 set { /*not needed because results are always readonly */} 48 } 49 45 50 /// <summary> 46 51 /// Initializes a new instance of <see cref="VariableView"/> with caption "Variable". … … 49 54 InitializeComponent(); 50 55 Caption = "Run"; 56 base.ReadOnly = true; 51 57 } 52 58 /// <summary> … … 65 71 viewHost.ViewType = null; 66 72 viewHost.Content = null; 73 if (Content == null) 74 Caption = "Run"; 75 else 76 Caption = Content.Name + " (" + Content.GetType().Name + ")"; 77 SetEnableStateOfControls(); 78 } 79 protected override void OnReadOnlyChanged() { 80 base.OnReadOnlyChanged(); 81 SetEnableStateOfControls(); 82 } 83 private void SetEnableStateOfControls() { 67 84 if (Content == null) { 68 Caption = "Run";69 85 parametersResultsGroupBox.Enabled = false; 86 viewHost.Enabled = false; 70 87 } else { 71 Caption = Content.Name + " (" + Content.GetType().Name + ")";72 88 parametersResultsGroupBox.Enabled = true; 89 viewHost.Enabled = true; 90 viewHost.ReadOnly = ReadOnly; 73 91 } 74 92 }
Note: See TracChangeset
for help on using the changeset viewer.