Changeset 14864 for trunk/sources/HeuristicLab.Algorithms.DataAnalysis.Views/3.4/CrossValidationView.cs
- Timestamp:
- 04/13/17 15:16:43 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.DataAnalysis.Views/3.4/CrossValidationView.cs
r14185 r14864 197 197 198 198 #region GUI events 199 private void shuffleSamplesCheckBox_CheckedChanged(object sender, EventArgs e) { 200 Content.ShuffleSamples.Value = shuffleSamplesCheckBox.Checked; 201 } 199 202 private void foldsNumericUpDown_Validated(object sender, EventArgs e) { 200 203 if (foldsNumericUpDown.Text == string.Empty) … … 238 241 try { 239 242 Content.Algorithm = (IAlgorithm)algorithmTypeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType(); 240 } 241 catch (Exception ex) { 243 } catch (Exception ex) { 242 244 ErrorHandling.ShowErrorDialog(this, ex); 243 245 } … … 250 252 algorithmTabControl.Enabled = false; 251 253 252 ContentManager.LoadAsync(openFileDialog.FileName, delegate (IStorableContent content, Exception error) {254 ContentManager.LoadAsync(openFileDialog.FileName, delegate (IStorableContent content, Exception error) { 253 255 try { 254 256 if (error != null) throw error; … … 258 260 else 259 261 Content.Algorithm = algorithm; 260 } 261 catch (Exception ex) { 262 } catch (Exception ex) { 262 263 ErrorHandling.ShowErrorDialog(this, ex); 263 } 264 finally { 265 Invoke(new Action(delegate() { 264 } finally { 265 Invoke(new Action(delegate () { 266 266 algorithmTabControl.Enabled = true; 267 267 })); … … 289 289 algorithmProblemViewHost.Enabled = false; 290 290 291 ContentManager.LoadAsync(openFileDialog.FileName, delegate (IStorableContent content, Exception error) {291 ContentManager.LoadAsync(openFileDialog.FileName, delegate (IStorableContent content, Exception error) { 292 292 try { 293 293 if (error != null) throw error; … … 298 298 else 299 299 Content.Problem = problem; 300 } 301 catch (Exception ex) { 300 } catch (Exception ex) { 302 301 Invoke(new Action(() => ErrorHandling.ShowErrorDialog(this, ex))); 303 } 304 finally { 305 Invoke(new Action(delegate() { 302 } finally { 303 Invoke(new Action(delegate () { 306 304 algorithmProblemViewHost.Enabled = true; 307 305 newProblemButton.Enabled = openProblemButton.Enabled = true; … … 357 355 } 358 356 #endregion 359 360 357 } 361 358 }
Note: See TracChangeset
for help on using the changeset viewer.