Changeset 274 for trunk/sources/HeuristicLab.StructureIdentification
- Timestamp:
- 05/29/08 18:14:22 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.StructureIdentification/StructIdProblemInjectorView.cs
r273 r274 77 77 parser.Import(openFileDialog.FileName, true); 78 78 success = true; 79 } catch(DataFormatException) { 79 } catch(DataFormatException ex) { 80 ShowWarningMessageBox(ex); 80 81 // not possible to parse strictly => try to parse non-strict 81 82 parser.Import(openFileDialog.FileName, false); … … 101 102 } 102 103 104 private void ShowWarningMessageBox(Exception ex) { 105 MessageBox.Show(ex.Message, 106 "Warning - " + ex.GetType().Name, 107 MessageBoxButtons.OK, 108 MessageBoxIcon.Warning); 109 } 103 110 private void ShowErrorMessageBox(Exception ex) { 104 111 MessageBox.Show(BuildErrorMessage(ex),
Note: See TracChangeset
for help on using the changeset viewer.