Free cookie consent management tool by TermsFeed Policy Generator

Changeset 661 for branches


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

fixed #307 in 3.1 branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.1/sources/HeuristicLab.OptimizationFrontend/MainForm.cs

    r2 r661  
    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.