Free cookie consent management tool by TermsFeed Policy Generator

Changeset 662 for branches/3.0/sources


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

fixed #307 in the 3.0 branch

File:
1 edited

Legend:

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

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