Changeset 3548
- Timestamp:
- 04/27/10 21:33:16 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Views/3.3/AlgorithmView.cs
r3526 r3548 195 195 IProblem problem = content as IProblem; 196 196 if (problem == null) 197 MessageBox.Show(this, "The selected file does not contain a problem.", "Invalid File", MessageBoxButtons.OK, MessageBoxIcon.Error); 197 Invoke(new Action(() => 198 MessageBox.Show(this, "The selected file does not contain a problem.", "Invalid File", MessageBoxButtons.OK, MessageBoxIcon.Error))); 198 199 else if (!Content.ProblemType.IsInstanceOfType(problem)) 199 MessageBox.Show(this, "The selected file contains a problem type which is not supported by this algorithm.", "Invalid Problem Type", MessageBoxButtons.OK, MessageBoxIcon.Error); 200 Invoke(new Action(() => 201 MessageBox.Show(this, "The selected file contains a problem type which is not supported by this algorithm.", "Invalid Problem Type", MessageBoxButtons.OK, MessageBoxIcon.Error))); 200 202 else 201 203 Content.Problem = problem; 202 204 } 203 205 catch (Exception ex) { 204 Auxiliary.ShowErrorMessageBox(ex);206 Invoke(new Action(() => Auxiliary.ShowErrorMessageBox(ex))); 205 207 } 206 208 finally {
Note: See TracChangeset
for help on using the changeset viewer.