Free cookie consent management tool by TermsFeed Policy Generator

Changeset 659


Ignore:
Timestamp:
10/14/08 23:59:47 (16 years ago)
Author:
gkronber
Message:

fixed #303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.AdvancedOptimizationFrontend/MainForm.cs

    r639 r659  
    3131using HeuristicLab.PluginInfrastructure;
    3232using HeuristicLab.Core;
     33using System.IO;
    3334
    3435namespace HeuristicLab.AdvancedOptimizationFrontend {
     
    140141    private void AsynchronousLoad(object state) {
    141142      Task task = (Task)state;
    142       task.storable = PersistenceManager.Load(task.filename);
     143      try {
     144        task.storable = PersistenceManager.Load(task.filename);
     145      } catch(FileNotFoundException ex) {
     146        MessageBox.Show("Sorry couldn't open file \"" + task.filename + "\".\nThe file or plugin \"" + ex.FileName+ "\" is not available.\nPlease make sure you have all necessary plugins installed.",
     147          "Reader Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     148      }
    143149      LoadFinished(task);
    144150    }
Note: See TracChangeset for help on using the changeset viewer.