Changeset 5902 for branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/RunCreation/Views/OKBAlgorithmView.cs
- Timestamp:
- 03/31/11 03:24:02 (14 years ago)
- Location:
- branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3
- Property svn:ignore
-
old new 3 3 *.user 4 4 HeuristicLabClientsOKBPlugin.cs 5 *.vs10x
-
- Property svn:ignore
-
branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/RunCreation/Views/OKBAlgorithmView.cs
r5667 r5902 81 81 Content.Stopped -= new EventHandler(Content_Stopped); 82 82 Content.ProblemChanged -= new EventHandler(Content_ProblemChanged); 83 Content.StoreRunsAutomaticallyChanged -= new EventHandler(Content_StoreRunsAutomaticallyChanged); 83 84 Content.StoreAlgorithmInEachRunChanged -= new EventHandler(Content_StoreAlgorithmInEachRunChanged); 84 85 base.DeregisterContentEvents(); … … 95 96 Content.Stopped += new EventHandler(Content_Stopped); 96 97 Content.ProblemChanged += new EventHandler(Content_ProblemChanged); 98 Content.StoreRunsAutomaticallyChanged += new EventHandler(Content_StoreRunsAutomaticallyChanged); 97 99 Content.StoreAlgorithmInEachRunChanged += new EventHandler(Content_StoreAlgorithmInEachRunChanged); 98 100 } … … 106 108 resultsView.Content = null; 107 109 runsView.Content = null; 110 storeRunsAutomaticallyCheckBox.Checked = true; 108 111 storeAlgorithmInEachRunCheckBox.Checked = true; 109 112 executionTimeTextBox.Text = "-"; … … 116 119 resultsView.Content = Content.Results.AsReadOnly(); 117 120 runsView.Content = Content.Runs; 121 storeRunsAutomaticallyCheckBox.Checked = Content.StoreRunsAutomatically; 118 122 storeAlgorithmInEachRunCheckBox.Checked = Content.StoreAlgorithmInEachRun; 119 123 executionTimeTextBox.Text = Content.ExecutionTime.ToString(); … … 132 136 resultsView.Enabled = Content != null; 133 137 runsView.Enabled = Content != null; 138 storeRunsAutomaticallyCheckBox.Enabled = Content != null && !ReadOnly; 134 139 storeAlgorithmInEachRunCheckBox.Enabled = Content != null && !ReadOnly; 135 140 executionTimeTextBox.Enabled = Content != null; … … 196 201 else 197 202 executionTimeTextBox.Text = Content == null ? "-" : Content.ExecutionTime.ToString(); 203 } 204 private void Content_StoreRunsAutomaticallyChanged(object sender, EventArgs e) { 205 if (InvokeRequired) 206 Invoke(new EventHandler(Content_StoreRunsAutomaticallyChanged), sender, e); 207 else 208 storeRunsAutomaticallyCheckBox.Checked = Content.StoreRunsAutomatically; 198 209 } 199 210 private void Content_StoreAlgorithmInEachRunChanged(object sender, EventArgs e) { … … 306 317 } 307 318 } 319 private void storeRunsAutomaticallyCheckBox_CheckedChanged(object sender, EventArgs e) { 320 if (Content != null) Content.StoreRunsAutomatically = storeRunsAutomaticallyCheckBox.Checked; 321 } 308 322 private void storeAlgorithmInEachRunCheckBox_CheckedChanged(object sender, EventArgs e) { 309 323 if (Content != null) Content.StoreAlgorithmInEachRun = storeAlgorithmInEachRunCheckBox.Checked;
Note: See TracChangeset
for help on using the changeset viewer.