Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/03/12 14:50:34 (12 years ago)
Author:
sforsten
Message:

#1782: added try catch block again, but the MessageBox has been changed to an ErrorDialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.Instances.Views/3.3/ProblemInstanceProviderViewGeneric.cs

    r8197 r8198  
    2626using HeuristicLab.MainForm;
    2727using HeuristicLab.MainForm.WindowsForms;
     28using HeuristicLab.PluginInfrastructure;
    2829
    2930namespace HeuristicLab.Problems.Instances.Views {
     
    9091        var descriptor = (IDataDescriptor)instancesComboBox.SelectedItem;
    9192        T instance = Content.LoadData(descriptor);
    92         GenericConsumer.Load(instance);
     93        try {
     94          GenericConsumer.Load(instance);
     95        }
     96        catch (Exception ex) {
     97          ErrorHandling.ShowErrorDialog(String.Format("This problem does not support loading the instance {0}: {1}", descriptor.Name, Environment.NewLine + ex.Message), ex);
     98        }
    9399      }
    94100    }
Note: See TracChangeset for help on using the changeset viewer.