- Timestamp:
- 11/23/09 16:43:34 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.AdvancedOptimizationFrontend/3.3/MainForm.cs
r2520 r2526 43 43 private class Task { 44 44 public string filename; 45 public I Storable storable;45 public IItem item; 46 46 public IEditor editor; 47 47 48 48 private Task() { } 49 public Task(string filename, I Storable storable, IEditor editor) {49 public Task(string filename, IItem item, IEditor editor) { 50 50 this.filename = filename; 51 this. storable = storable;51 this.item = item; 52 52 this.editor = editor; 53 53 } … … 156 156 Task task = (Task)state; 157 157 try { 158 task. storable= PersistenceManager.Load(task.filename);158 task.item = PersistenceManager.Load(task.filename); 159 159 } catch (FileNotFoundException fileNotFoundEx) { 160 160 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.", … … 177 177 else { 178 178 IEditor editor = null; 179 if (task. storable!= null) {180 IEditable editable = task. storableas IEditable;179 if (task.item != null) { 180 IEditable editable = task.item as IEditable; 181 181 if (editable != null) 182 182 editor = (IEditor)MainFormManager.CreateDefaultView(editable);
Note: See TracChangeset
for help on using the changeset viewer.