Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/09/09 00:57:49 (16 years ago)
Author:
swagner
Message:

Refactoring of the operator architecture (#95)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Operator Architecture Refactoring/HeuristicLab.AdvancedOptimizationFrontend/3.3/MainForm.cs

    r1921 r2033  
    4141    private class Task {
    4242      public string filename;
    43       public IStorable storable;
     43      public object instance;
    4444      public IEditor editor;
    4545
    4646      private Task() { }
    47       public Task(string filename, IStorable storable, IEditor editor) {
     47      public Task(string filename, object instance, IEditor editor) {
    4848        this.filename = filename;
    49         this.storable = storable;
     49        this.instance = instance;
    5050        this.editor = editor;
    5151      }
     
    154154      Task task = (Task)state;
    155155      try {
    156         task.storable = PersistenceManager.Load(task.filename);
     156        task.instance = PersistenceManager.Load(task.filename);
    157157      } catch (FileNotFoundException fileNotFoundEx) {
    158158        MessageBox.Show("Sorry couldn't open file \"" + task.filename + "\".\nThe file or plugin \"" + fileNotFoundEx.FileName + "\" is not available.\nPlease make sure you have all necessary plugins installed.",
     
    175175      else {
    176176        IEditor editor = null;
    177         if (task.storable != null) {
    178           IEditable editable = task.storable as IEditable;
     177        if (task.instance != null) {
     178          IEditable editable = task.instance as IEditable;
    179179          if (editable != null)
    180180            editor = editable.CreateEditor();
Note: See TracChangeset for help on using the changeset viewer.