Changeset 17404 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/FileManager.cs
- Timestamp:
- 01/20/20 16:36:05 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/FileManager.cs
r17394 r17404 13 13 14 14 namespace HeuristicLab.JsonInterface.OptimizerIntegration { 15 internal 15 internal static class FileManager { 16 16 private static SaveFileDialog saveFileDialog; 17 17 private static OpenFileDialog openFileDialog; 18 private static ExportJsonDialog exportDialog = new ExportJsonDialog(); 18 19 19 20 public static void ExportJsonTemplate() { … … 23 24 } 24 25 } 25 public static void ExportJsonTemplate(IContentView view) { 26 public static void ExportJsonTemplate(IContentView view) { 26 27 // TODO: view to select free params, warning if no results are generated 28 29 30 27 31 IStorableContent content = view.Content as IStorableContent; 28 32 if (!view.Locked && content != null) { 33 exportDialog.Content = content; 34 exportDialog.ShowDialog(); 35 /* 29 36 if (saveFileDialog == null) { 30 37 saveFileDialog = new SaveFileDialog(); … … 47 54 File.WriteAllText(saveFileDialog.FileName, JCGenerator.GenerateTemplate(alg)); 48 55 } 56 */ 49 57 } 50 58 }
Note: See TracChangeset
for help on using the changeset viewer.