Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/29/08 18:14:22 (16 years ago)
Author:
gkronber
Message:

addition changeset (r273). added a warning dialog showing what was the problem while parsing if strict parsing fails.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.StructureIdentification/StructIdProblemInjectorView.cs

    r273 r274  
    7777            parser.Import(openFileDialog.FileName, true);
    7878            success = true;
    79           } catch(DataFormatException) {
     79          } catch(DataFormatException ex) {
     80            ShowWarningMessageBox(ex);
    8081            // not possible to parse strictly => try to parse non-strict
    8182            parser.Import(openFileDialog.FileName, false);
     
    101102    }
    102103
     104    private void ShowWarningMessageBox(Exception ex) {
     105      MessageBox.Show(ex.Message,
     106                      "Warning - " + ex.GetType().Name,
     107                      MessageBoxButtons.OK,
     108                      MessageBoxIcon.Warning);
     109    }
    103110    private void ShowErrorMessageBox(Exception ex) {
    104111      MessageBox.Show(BuildErrorMessage(ex),
Note: See TracChangeset for help on using the changeset viewer.