Changeset 17349 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration
- Timestamp:
- 11/08/19 11:36:09 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/FileManager.cs
r17339 r17349 43 43 44 44 if (saveFileDialog.ShowDialog() == DialogResult.OK) { 45 JCGenerator gen = new JCGenerator();46 45 IAlgorithm alg = namedItem as IAlgorithm; 47 File.WriteAllText(saveFileDialog.FileName, gen.GenerateTemplate(alg));46 File.WriteAllText(saveFileDialog.FileName, JCGenerator.GenerateTemplate(alg)); 48 47 } 49 48 } … … 62 61 63 62 if (openFileDialog.ShowDialog() == DialogResult.OK) { 64 JCInstantiator instantiator = new JCInstantiator();65 63 try { 66 var content = instantiator.Instantiate(openFileDialog.FileName);64 var content = JCInstantiator.Instantiate(openFileDialog.FileName); 67 65 IView view = MainFormManager.MainForm.ShowContent(content); 68 66 if (view == null)
Note: See TracChangeset
for help on using the changeset viewer.