Changeset 18046 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration
- Timestamp:
- 09/02/21 16:42:16 (3 years ago)
- Location:
- branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/ExportJsonDialog.Designer.cs
r17828 r18046 1 namespace HeuristicLab.JsonInterface.OptimizerIntegration { 1 using HeuristicLab.Core; 2 3 namespace HeuristicLab.JsonInterface.OptimizerIntegration { 2 4 partial class ExportJsonDialog { 3 5 /// <summary> … … 38 40 this.tabPage1 = new System.Windows.Forms.TabPage(); 39 41 this.tabPage2 = new System.Windows.Forms.TabPage(); 42 this.tabPage3 = new System.Windows.Forms.TabPage(); 40 43 this.label1 = new System.Windows.Forms.Label(); 41 44 this.textBoxTemplateName = new System.Windows.Forms.TextBox(); … … 172 175 this.splitContainer2.SplitterDistance = 380; 173 176 this.splitContainer2.TabIndex = 9; 177 // postProcessorListView 178 this.postProcessorListView = new Core.Views.CheckedItemListView<IResultCollectionPostProcessor>(); 179 this.postProcessorListView.Content = new CheckedItemList<IResultCollectionPostProcessor>(); 180 this.postProcessorListView.Content.Add(new SymRegPythonPostProcessor()); 181 this.postProcessorListView.Location = new System.Drawing.Point(0, 6); 182 this.postProcessorListView.Dock = System.Windows.Forms.DockStyle.Fill; 174 183 // 175 184 // tabControl1 … … 180 189 this.tabControl1.Controls.Add(this.tabPage1); 181 190 this.tabControl1.Controls.Add(this.tabPage2); 191 this.tabControl1.Controls.Add(this.tabPage3); 182 192 this.tabControl1.Location = new System.Drawing.Point(12, 38); 183 193 this.tabControl1.Name = "tabControl1"; … … 207 217 this.tabPage2.Text = "Results"; 208 218 this.tabPage2.UseVisualStyleBackColor = true; 219 // 220 // tabPage3 221 // 222 this.tabPage3.Controls.Add(this.postProcessorListView); 223 this.tabPage3.Location = new System.Drawing.Point(4, 22); 224 this.tabPage3.Name = "tabPage3"; 225 this.tabPage3.Size = new System.Drawing.Size(802, 505); 226 this.tabPage3.TabIndex = 2; 227 this.tabPage3.Text = "Post Processors"; 228 this.tabPage3.UseVisualStyleBackColor = true; 209 229 // 210 230 // label1 … … 289 309 private System.Windows.Forms.GroupBox groupBox; 290 310 private System.Windows.Forms.Panel panelResultDetails; 311 private System.Windows.Forms.TabPage tabPage3; 312 private Core.Views.CheckedItemListView<IResultCollectionPostProcessor> postProcessorListView; 291 313 } 292 314 } -
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.