Changeset 2033 for branches/Operator Architecture Refactoring/HeuristicLab.AdvancedOptimizationFrontend
- Timestamp:
- 06/09/09 00:57:49 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Operator Architecture Refactoring/HeuristicLab.AdvancedOptimizationFrontend/3.3/MainForm.cs
r1921 r2033 41 41 private class Task { 42 42 public string filename; 43 public IStorable storable;43 public object instance; 44 44 public IEditor editor; 45 45 46 46 private Task() { } 47 public Task(string filename, IStorable storable, IEditor editor) {47 public Task(string filename, object instance, IEditor editor) { 48 48 this.filename = filename; 49 this. storable = storable;49 this.instance = instance; 50 50 this.editor = editor; 51 51 } … … 154 154 Task task = (Task)state; 155 155 try { 156 task. storable = PersistenceManager.Load(task.filename);156 task.instance = PersistenceManager.Load(task.filename); 157 157 } catch (FileNotFoundException fileNotFoundEx) { 158 158 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.", … … 175 175 else { 176 176 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; 179 179 if (editable != null) 180 180 editor = editable.CreateEditor();
Note: See TracChangeset
for help on using the changeset viewer.