Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/23/09 16:43:34 (15 years ago)
Author:
swagner
Message:

Refactored cloning (#806)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.AdvancedOptimizationFrontend/3.3/MainForm.cs

    r2520 r2526  
    4343    private class Task {
    4444      public string filename;
    45       public IStorable storable;
     45      public IItem item;
    4646      public IEditor editor;
    4747
    4848      private Task() { }
    49       public Task(string filename, IStorable storable, IEditor editor) {
     49      public Task(string filename, IItem item, IEditor editor) {
    5050        this.filename = filename;
    51         this.storable = storable;
     51        this.item = item;
    5252        this.editor = editor;
    5353      }
     
    156156      Task task = (Task)state;
    157157      try {
    158         task.storable = PersistenceManager.Load(task.filename);
     158        task.item = PersistenceManager.Load(task.filename);
    159159      } catch (FileNotFoundException fileNotFoundEx) {
    160160        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.",
     
    177177      else {
    178178        IEditor editor = null;
    179         if (task.storable != null) {
    180           IEditable editable = task.storable as IEditable;
     179        if (task.item != null) {
     180          IEditable editable = task.item as IEditable;
    181181          if (editable != null)
    182182            editor = (IEditor)MainFormManager.CreateDefaultView(editable);
Note: See TracChangeset for help on using the changeset viewer.