Changeset 18046 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/ExportJsonDialog.cs
- Timestamp:
- 09/02/21 16:42:16 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/ExportJsonDialog.cs
r18043 r18046 4 4 using System.Drawing; 5 5 using System.IO; 6 using System.Linq; 6 7 using System.Windows.Forms; 7 8 using HeuristicLab.Common; 9 using HeuristicLab.Core; 8 10 using HeuristicLab.Optimization; 9 11 using HeuristicLab.PluginInfrastructure; … … 20 22 private IOptimizer Optimizer { get; set; } 21 23 private IList<IJsonItemVM> VMs { get; set; } 24 private ICheckedItemList<IResultCollectionPostProcessor> PostProcessors { get; set; } 22 25 #endregion 23 26 … … 27 30 set { 28 31 content = value; 29 32 //CheckedItemListView 30 33 #region Clear 31 34 VMs = new List<IJsonItemVM>(); … … 33 36 treeViewResults.Nodes.Clear(); 34 37 #endregion 35 36 38 Optimizer = content as IOptimizer; 37 39 if(Optimizer != null) { … … 59 61 public ExportJsonDialog() { 60 62 InitializeComponent(); 63 this.PostProcessors = this.postProcessorListView.Content; 61 64 this.Icon = HeuristicLab.Common.Resources.HeuristicLab.Icon; 62 65 InitCache(); … … 71 74 if (FolderBrowserDialog.ShowDialog() == DialogResult.OK) { 72 75 try { 76 //foreach(var x in PostProcessors.CheckedItems) 77 73 78 JsonTemplateGenerator.GenerateTemplate( 74 79 Path.Combine(FolderBrowserDialog.SelectedPath, textBoxTemplateName.Text), 75 Optimizer, Root );80 Optimizer, Root, PostProcessors.CheckedItems.Select(x => x.Value)); 76 81 Close(); 77 82 } catch (Exception ex) {
Note: See TracChangeset
for help on using the changeset viewer.