Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/15/08 00:04:27 (16 years ago)
Author:
gkronber
Message:

fixed #307 in the trunk.

File:
1 edited

Legend:

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

    r640 r660  
    3030using HeuristicLab.PluginInfrastructure;
    3131using HeuristicLab.Core;
     32using System.IO;
    3233
    3334namespace HeuristicLab.OptimizationFrontend {
     
    143144    private void AsynchronousLoad(object state) {
    144145      Task task = (Task)state;
    145       task.storable = PersistenceManager.Load(task.filename);
     146      try {
     147        task.storable = PersistenceManager.Load(task.filename);
     148      } catch(FileNotFoundException ex) {
     149        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.",
     150          "Reader Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     151      }
    146152      LoadFinished(task);
    147153    }
Note: See TracChangeset for help on using the changeset viewer.