Free cookie consent management tool by TermsFeed Policy Generator

Changeset 663 for branches/3.0


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

fixed #303 in 3.0 branch

File:
1 edited

Legend:

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

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