Changeset 17464
- Timestamp:
- 03/02/20 15:53:52 (5 years ago)
- Location:
- branches/3026_IntegrationIntoSymSpace
- Files:
-
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.App/HeuristicLab.JsonInterface.App.csproj
r17453 r17464 81 81 <Name>HeuristicLab.Core-3.3</Name> 82 82 </ProjectReference> 83 <ProjectReference Include="..\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding\3.4\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4.csproj"> 84 <Project>{06D4A186-9319-48A0-BADE-A2058D462EEA}</Project> 85 <Name>HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4</Name> 86 </ProjectReference> 83 87 <ProjectReference Include="..\HeuristicLab.JsonInterface\HeuristicLab.JsonInterface.csproj"> 84 88 <Project>{0e3aab5e-f152-44e0-a054-4d9a83ecee08}</Project> … … 96 100 <Project>{94186a6a-5176-4402-ae83-886557b53cca}</Project> 97 101 <Name>HeuristicLab.PluginInfrastructure-3.3</Name> 102 </ProjectReference> 103 <ProjectReference Include="..\HeuristicLab.Problems.DataAnalysis.Symbolic.Regression\3.4\HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4.csproj"> 104 <Project>{5AC82412-911B-4FA2-A013-EDC5E3F3FCC2}</Project> 105 <Name>HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4</Name> 106 </ProjectReference> 107 <ProjectReference Include="..\HeuristicLab.Problems.DataAnalysis.Symbolic\3.4\HeuristicLab.Problems.DataAnalysis.Symbolic-3.4.csproj"> 108 <Project>{3d28463f-ec96-4d82-afee-38be91a0ca00}</Project> 109 <Name>HeuristicLab.Problems.DataAnalysis.Symbolic-3.4</Name> 110 </ProjectReference> 111 <ProjectReference Include="..\HeuristicLab.Problems.DataAnalysis\3.4\HeuristicLab.Problems.DataAnalysis-3.4.csproj"> 112 <Project>{DF87C13E-A889-46FF-8153-66DCAA8C5674}</Project> 113 <Name>HeuristicLab.Problems.DataAnalysis-3.4</Name> 98 114 </ProjectReference> 99 115 <ProjectReference Include="..\HeuristicLab.Problems.Instances\3.3\HeuristicLab.Problems.Instances-3.3.csproj"> -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.App/Runner.cs
r17453 r17464 8 8 using HeuristicLab.Optimization; 9 9 using HeuristicLab.ParallelEngine; 10 using HeuristicLab.Problems.DataAnalysis.Symbolic; 11 using HeuristicLab.Problems.DataAnalysis.Symbolic.Regression; 10 12 using HeuristicLab.SequentialEngine; 11 13 using Newtonsoft.Json.Linq; … … 39 41 obj.Add("Run", JToken.FromObject(run.ToString())); 40 42 foreach (var res in run.Results) { 41 if (allowedResultNames.Contains(res.Key)) 42 obj.Add(res.Key, JToken.FromObject(res.Value.ToString())); 43 if (allowedResultNames.Contains(res.Key)) { 44 if (res.Value is ISymbolicRegressionSolution solution) { 45 var formatter = new SymbolicDataAnalysisExpressionMATLABFormatter(); 46 var x = formatter.Format(solution.Model.SymbolicExpressionTree); 47 obj.Add(res.Key, JToken.FromObject(x)); 48 } else 49 obj.Add(res.Key, JToken.FromObject(res.Value.ToString())); 50 } 43 51 } 44 52 } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/HeuristicLab.JsonInterface.OptimizerIntegration.csproj
r17451 r17464 66 66 <HintPath>..\bin\HeuristicLab.Optimization.Views-3.3.dll</HintPath> 67 67 </Reference> 68 <Reference Include="PresentationCore" /> 69 <Reference Include="PresentationFramework" /> 68 70 <Reference Include="System" /> 69 71 <Reference Include="System.Core" /> 70 72 <Reference Include="System.Drawing" /> 73 <Reference Include="System.Messaging" /> 71 74 <Reference Include="System.Windows.Forms" /> 75 <Reference Include="System.Xaml" /> 72 76 <Reference Include="System.Xml.Linq" /> 73 77 <Reference Include="System.Data.DataSetExtensions" /> … … 76 80 <Reference Include="System.Net.Http" /> 77 81 <Reference Include="System.Xml" /> 82 <Reference Include="UIAutomationProvider" /> 83 <Reference Include="WindowsBase" /> 84 <Reference Include="WindowsFormsIntegration" /> 78 85 </ItemGroup> 79 86 <ItemGroup> -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared/JsonItemBaseControl.Designer.cs
r17444 r17464 25 25 private void InitializeComponent() { 26 26 this.components = new System.ComponentModel.Container(); 27 this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components); 28 this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); 29 this.panel4 = new System.Windows.Forms.Panel(); 30 this.textBoxActualName = new System.Windows.Forms.TextBox(); 31 this.labelActualName = new System.Windows.Forms.Label(); 32 this.panel2 = new System.Windows.Forms.Panel(); 33 this.labelDescription = new System.Windows.Forms.Label(); 34 this.textBoxDescription = new System.Windows.Forms.TextBox(); 35 this.panel1 = new System.Windows.Forms.Panel(); 36 this.textBoxName = new System.Windows.Forms.TextBox(); 37 this.label1 = new System.Windows.Forms.Label(); 38 this.panel3 = new System.Windows.Forms.Panel(); 27 39 this.labelEnable = new System.Windows.Forms.Label(); 28 40 this.checkBoxActive = new System.Windows.Forms.CheckBox(); 29 this.textBoxActualName = new System.Windows.Forms.TextBox();30 this.labelActualName = new System.Windows.Forms.Label();31 this.textBoxName = new System.Windows.Forms.TextBox();32 this.label1 = new System.Windows.Forms.Label();33 this.labelDescription = new System.Windows.Forms.Label();34 this.textBoxDescription = new System.Windows.Forms.TextBox();35 this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components);36 41 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 42 this.tableLayoutPanel1.SuspendLayout(); 43 this.panel4.SuspendLayout(); 44 this.panel2.SuspendLayout(); 45 this.panel1.SuspendLayout(); 46 this.panel3.SuspendLayout(); 37 47 this.SuspendLayout(); 38 48 // 39 // labelEnable 40 // 41 this.labelEnable.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 42 | System.Windows.Forms.AnchorStyles.Right))); 43 this.labelEnable.AutoSize = true; 44 this.labelEnable.Location = new System.Drawing.Point(6, 3); 45 this.labelEnable.Name = "labelEnable"; 46 this.labelEnable.Size = new System.Drawing.Size(40, 13); 47 this.labelEnable.TabIndex = 3; 48 this.labelEnable.Text = "Enable"; 49 // 50 // checkBoxActive 51 // 52 this.checkBoxActive.AutoSize = true; 53 this.checkBoxActive.Location = new System.Drawing.Point(92, 3); 54 this.checkBoxActive.Name = "checkBoxActive"; 55 this.checkBoxActive.Size = new System.Drawing.Size(15, 14); 56 this.checkBoxActive.TabIndex = 2; 57 this.checkBoxActive.UseVisualStyleBackColor = true; 49 // errorProvider 50 // 51 this.errorProvider.BlinkStyle = System.Windows.Forms.ErrorBlinkStyle.NeverBlink; 52 this.errorProvider.ContainerControl = this; 53 // 54 // tableLayoutPanel1 55 // 56 this.tableLayoutPanel1.ColumnCount = 1; 57 this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); 58 this.tableLayoutPanel1.Controls.Add(this.panel4, 0, 3); 59 this.tableLayoutPanel1.Controls.Add(this.panel2, 0, 2); 60 this.tableLayoutPanel1.Controls.Add(this.panel1, 0, 1); 61 this.tableLayoutPanel1.Controls.Add(this.panel3, 0, 0); 62 this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; 63 this.tableLayoutPanel1.Location = new System.Drawing.Point(3, 3); 64 this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(0); 65 this.tableLayoutPanel1.Name = "tableLayoutPanel1"; 66 this.tableLayoutPanel1.RowCount = 5; 67 this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F)); 68 this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F)); 69 this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F)); 70 this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F)); 71 this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); 72 this.tableLayoutPanel1.Size = new System.Drawing.Size(494, 388); 73 this.tableLayoutPanel1.TabIndex = 16; 74 // 75 // panel4 76 // 77 this.panel4.Controls.Add(this.textBoxActualName); 78 this.panel4.Controls.Add(this.labelActualName); 79 this.panel4.Dock = System.Windows.Forms.DockStyle.Fill; 80 this.panel4.Location = new System.Drawing.Point(0, 75); 81 this.panel4.Margin = new System.Windows.Forms.Padding(0); 82 this.panel4.Name = "panel4"; 83 this.panel4.Size = new System.Drawing.Size(494, 25); 84 this.panel4.TabIndex = 17; 58 85 // 59 86 // textBoxActualName … … 61 88 this.textBoxActualName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 62 89 | System.Windows.Forms.AnchorStyles.Right))); 63 this.textBoxActualName.Location = new System.Drawing.Point(92, 75);90 this.textBoxActualName.Location = new System.Drawing.Point(92, 3); 64 91 this.textBoxActualName.Name = "textBoxActualName"; 65 this.textBoxActualName.Size = new System.Drawing.Size( 402, 20);92 this.textBoxActualName.Size = new System.Drawing.Size(396, 20); 66 93 this.textBoxActualName.TabIndex = 12; 67 94 // … … 69 96 // 70 97 this.labelActualName.AutoSize = true; 71 this.labelActualName.Location = new System.Drawing.Point(6, 78);98 this.labelActualName.Location = new System.Drawing.Point(6, 6); 72 99 this.labelActualName.Name = "labelActualName"; 73 100 this.labelActualName.Size = new System.Drawing.Size(65, 13); … … 76 103 this.labelActualName.TextAlign = System.Drawing.ContentAlignment.MiddleRight; 77 104 // 105 // panel2 106 // 107 this.panel2.Controls.Add(this.labelDescription); 108 this.panel2.Controls.Add(this.textBoxDescription); 109 this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; 110 this.panel2.Location = new System.Drawing.Point(0, 50); 111 this.panel2.Margin = new System.Windows.Forms.Padding(0); 112 this.panel2.Name = "panel2"; 113 this.panel2.Size = new System.Drawing.Size(494, 25); 114 this.panel2.TabIndex = 17; 115 // 116 // labelDescription 117 // 118 this.labelDescription.AutoSize = true; 119 this.labelDescription.Location = new System.Drawing.Point(6, 6); 120 this.labelDescription.Name = "labelDescription"; 121 this.labelDescription.Size = new System.Drawing.Size(60, 13); 122 this.labelDescription.TabIndex = 13; 123 this.labelDescription.Text = "Description"; 124 // 125 // textBoxDescription 126 // 127 this.textBoxDescription.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 128 | System.Windows.Forms.AnchorStyles.Right))); 129 this.textBoxDescription.Location = new System.Drawing.Point(92, 3); 130 this.textBoxDescription.Name = "textBoxDescription"; 131 this.textBoxDescription.Size = new System.Drawing.Size(396, 20); 132 this.textBoxDescription.TabIndex = 14; 133 // 134 // panel1 135 // 136 this.panel1.Controls.Add(this.textBoxName); 137 this.panel1.Controls.Add(this.label1); 138 this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; 139 this.panel1.Location = new System.Drawing.Point(0, 25); 140 this.panel1.Margin = new System.Windows.Forms.Padding(0); 141 this.panel1.Name = "panel1"; 142 this.panel1.Size = new System.Drawing.Size(494, 25); 143 this.panel1.TabIndex = 17; 144 // 78 145 // textBoxName 79 146 // … … 81 148 | System.Windows.Forms.AnchorStyles.Right))); 82 149 this.errorProvider.SetIconAlignment(this.textBoxName, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 83 this.textBoxName.Location = new System.Drawing.Point(92, 23);150 this.textBoxName.Location = new System.Drawing.Point(92, 3); 84 151 this.textBoxName.Name = "textBoxName"; 85 this.textBoxName.Size = new System.Drawing.Size( 402, 20);152 this.textBoxName.Size = new System.Drawing.Size(396, 20); 86 153 this.textBoxName.TabIndex = 10; 87 154 this.textBoxName.Validating += new System.ComponentModel.CancelEventHandler(this.textBoxName_Validating); … … 90 157 // 91 158 this.label1.AutoSize = true; 92 this.label1.Location = new System.Drawing.Point(6, 26);159 this.label1.Location = new System.Drawing.Point(6, 6); 93 160 this.label1.Name = "label1"; 94 161 this.label1.Size = new System.Drawing.Size(35, 13); … … 97 164 this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; 98 165 // 99 // labelDescription 100 // 101 this.labelDescription.AutoSize = true; 102 this.labelDescription.Location = new System.Drawing.Point(6, 52); 103 this.labelDescription.Name = "labelDescription"; 104 this.labelDescription.Size = new System.Drawing.Size(60, 13); 105 this.labelDescription.TabIndex = 13; 106 this.labelDescription.Text = "Description"; 107 // 108 // textBoxDescription 109 // 110 this.textBoxDescription.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 111 | System.Windows.Forms.AnchorStyles.Right))); 112 this.textBoxDescription.Location = new System.Drawing.Point(92, 49); 113 this.textBoxDescription.Name = "textBoxDescription"; 114 this.textBoxDescription.Size = new System.Drawing.Size(402, 20); 115 this.textBoxDescription.TabIndex = 14; 116 // 117 // errorProvider 118 // 119 this.errorProvider.BlinkStyle = System.Windows.Forms.ErrorBlinkStyle.NeverBlink; 120 this.errorProvider.ContainerControl = this; 166 // panel3 167 // 168 this.panel3.Controls.Add(this.labelEnable); 169 this.panel3.Controls.Add(this.checkBoxActive); 170 this.panel3.Dock = System.Windows.Forms.DockStyle.Fill; 171 this.panel3.Location = new System.Drawing.Point(0, 0); 172 this.panel3.Margin = new System.Windows.Forms.Padding(0); 173 this.panel3.Name = "panel3"; 174 this.panel3.Size = new System.Drawing.Size(494, 25); 175 this.panel3.TabIndex = 17; 176 // 177 // labelEnable 178 // 179 this.labelEnable.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 180 | System.Windows.Forms.AnchorStyles.Right))); 181 this.labelEnable.AutoSize = true; 182 this.labelEnable.Location = new System.Drawing.Point(6, 7); 183 this.labelEnable.Name = "labelEnable"; 184 this.labelEnable.Size = new System.Drawing.Size(40, 13); 185 this.labelEnable.TabIndex = 3; 186 this.labelEnable.Text = "Enable"; 187 // 188 // checkBoxActive 189 // 190 this.checkBoxActive.AutoSize = true; 191 this.checkBoxActive.Location = new System.Drawing.Point(92, 7); 192 this.checkBoxActive.Name = "checkBoxActive"; 193 this.checkBoxActive.Size = new System.Drawing.Size(15, 14); 194 this.checkBoxActive.TabIndex = 2; 195 this.checkBoxActive.UseVisualStyleBackColor = true; 121 196 // 122 197 // JsonItemBaseControl … … 124 199 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 125 200 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 126 this.Controls.Add(this.textBoxDescription); 127 this.Controls.Add(this.labelDescription); 128 this.Controls.Add(this.labelEnable); 129 this.Controls.Add(this.checkBoxActive); 130 this.Controls.Add(this.textBoxActualName); 131 this.Controls.Add(this.labelActualName); 132 this.Controls.Add(this.textBoxName); 133 this.Controls.Add(this.label1); 201 this.Controls.Add(this.tableLayoutPanel1); 134 202 this.errorProvider.SetIconAlignment(this, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 135 203 this.Name = "JsonItemBaseControl"; 136 204 this.Padding = new System.Windows.Forms.Padding(3); 137 this.Size = new System.Drawing.Size(500, 154);205 this.Size = new System.Drawing.Size(500, 394); 138 206 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 207 this.tableLayoutPanel1.ResumeLayout(false); 208 this.panel4.ResumeLayout(false); 209 this.panel4.PerformLayout(); 210 this.panel2.ResumeLayout(false); 211 this.panel2.PerformLayout(); 212 this.panel1.ResumeLayout(false); 213 this.panel1.PerformLayout(); 214 this.panel3.ResumeLayout(false); 215 this.panel3.PerformLayout(); 139 216 this.ResumeLayout(false); 140 this.PerformLayout();141 217 142 218 } 143 219 144 220 #endregion 145 146 private System.Windows.Forms.Label labelEnable;147 private System.Windows.Forms.CheckBox checkBoxActive;148 private System.Windows.Forms.TextBox textBoxActualName;149 private System.Windows.Forms.Label labelActualName;150 private System.Windows.Forms.TextBox textBoxName;151 private System.Windows.Forms.Label label1;152 private System.Windows.Forms.Label labelDescription;153 private System.Windows.Forms.TextBox textBoxDescription;154 221 protected System.Windows.Forms.ErrorProvider errorProvider; 222 protected System.Windows.Forms.Label labelEnable; 223 protected System.Windows.Forms.CheckBox checkBoxActive; 224 protected System.Windows.Forms.TextBox textBoxActualName; 225 protected System.Windows.Forms.Label labelActualName; 226 protected System.Windows.Forms.TextBox textBoxName; 227 protected System.Windows.Forms.Label label1; 228 protected System.Windows.Forms.Label labelDescription; 229 protected System.Windows.Forms.TextBox textBoxDescription; 230 private System.Windows.Forms.Panel panel1; 231 private System.Windows.Forms.Panel panel3; 232 private System.Windows.Forms.Panel panel2; 233 private System.Windows.Forms.Panel panel4; 234 protected System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; 155 235 } 156 236 } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared/JsonItemBaseControl.cs
r17446 r17464 20 20 InitializeComponent(); 21 21 VM = vm; 22 Init(); 23 } 22 24 25 public JsonItemBaseControl(IJsonItemVM vm, UserControl control) { 26 InitializeComponent(); 27 VM = vm; 28 tableLayoutPanel1.Controls.Add(control, 0, 4); 29 control.Dock = DockStyle.Fill; 30 Init(); 31 } 32 33 private void Init() { 23 34 checkBoxActive.DataBindings.Add("Checked", VM, nameof(IJsonItemVM.Selected), 24 35 false, DataSourceUpdateMode.OnPropertyChanged); … … 27 38 textBoxActualName.DataBindings.Add("Text", VM, nameof(IJsonItemVM.ActualName)); 28 39 29 if (string.IsNullOrWhiteSpace(VM.Item.ActualName)) 30 textBoxActualName.ReadOnly = true; 31 else 40 if (string.IsNullOrWhiteSpace(VM.Item.ActualName)) { 41 textBoxActualName.Enabled = false; 42 tableLayoutPanel1.Controls.Remove(panel4); 43 tableLayoutPanel1.RowStyles[3].Height = 0; 44 //textBoxActualName.ReadOnly = true; 45 } else 32 46 textBoxActualName.Text = VM.Item.ActualName; 33 34 47 } 35 48 -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared/NumericRangeControl.Designer.cs
r17446 r17464 40 40 | System.Windows.Forms.AnchorStyles.Right))); 41 41 this.errorProvider.SetIconAlignment(this.textBoxFrom, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 42 this.textBoxFrom.Location = new System.Drawing.Point( 67, 17);42 this.textBoxFrom.Location = new System.Drawing.Point(87, 16); 43 43 this.textBoxFrom.Name = "textBoxFrom"; 44 44 this.textBoxFrom.ReadOnly = true; 45 this.textBoxFrom.Size = new System.Drawing.Size( 253, 20);45 this.textBoxFrom.Size = new System.Drawing.Size(407, 20); 46 46 this.textBoxFrom.TabIndex = 2; 47 47 this.textBoxFrom.Validating += new System.ComponentModel.CancelEventHandler(this.textBoxFrom_Validating); … … 56 56 this.groupBox2.Location = new System.Drawing.Point(0, 0); 57 57 this.groupBox2.Name = "groupBox2"; 58 this.groupBox2.Size = new System.Drawing.Size( 326, 75);58 this.groupBox2.Size = new System.Drawing.Size(500, 75); 59 59 this.groupBox2.TabIndex = 19; 60 60 this.groupBox2.TabStop = false; … … 76 76 | System.Windows.Forms.AnchorStyles.Right))); 77 77 this.errorProvider.SetIconAlignment(this.textBoxTo, System.Windows.Forms.ErrorIconAlignment.TopLeft); 78 this.textBoxTo.Location = new System.Drawing.Point( 67, 43);78 this.textBoxTo.Location = new System.Drawing.Point(87, 42); 79 79 this.textBoxTo.Name = "textBoxTo"; 80 80 this.textBoxTo.ReadOnly = true; 81 this.textBoxTo.Size = new System.Drawing.Size( 253, 20);81 this.textBoxTo.Size = new System.Drawing.Size(407, 20); 82 82 this.textBoxTo.TabIndex = 6; 83 83 this.textBoxTo.Validating += new System.ComponentModel.CancelEventHandler(this.textBoxTo_Validating); … … 104 104 this.Controls.Add(this.groupBox2); 105 105 this.Name = "NumericRangeControl"; 106 this.Size = new System.Drawing.Size( 326, 75);106 this.Size = new System.Drawing.Size(500, 75); 107 107 this.groupBox2.ResumeLayout(false); 108 108 this.groupBox2.PerformLayout(); -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/ArrayValueVM.cs
r17446 r17464 16 16 17 17 public override JsonItemBaseControl Control => 18 new JsonItem DoubleArrayValueControl(this);18 new JsonItemBaseControl(this, new JsonItemDoubleArrayValueControl(this)); 19 19 20 20 public override double[] Value { … … 35 35 36 36 public override JsonItemBaseControl Control => 37 new JsonItem IntArrayValueControl(this);37 new JsonItemBaseControl(this, new JsonItemIntArrayValueControl(this)); 38 38 39 39 public override int[] Value { -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/MatrixValueVM.cs
r17446 r17464 10 10 public class DoubleMatrixValueVM : MatrixValueVM<double, DoubleMatrixJsonItem> { 11 11 public override Type JsonItemType => typeof(DoubleMatrixJsonItem); 12 public override JsonItemBaseControl Control => 13 new JsonItemDoubleMatrixValueControl(this);12 public override JsonItemBaseControl Control => null; 13 //new JsonItemDoubleMatrixValueControl(this); 14 14 15 15 public override double[][] Value { -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/NamedMatrixValueVM.cs
r17451 r17464 9 9 public override Type JsonItemType => typeof(DoubleNamedMatrixJsonItem); 10 10 public override JsonItemBaseControl Control => 11 new JsonItem DoubleNamedMatrixValueControl(this);11 new JsonItemBaseControl(this, new JsonItemDoubleNamedMatrixValueControl(this)); 12 12 13 13 public override double[][] Value { -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/RangeVM.cs
r17454 r17464 16 16 17 17 public override JsonItemBaseControl Control => 18 new JsonItem RangeControl(this);18 new JsonItemBaseControl(this, new JsonItemRangeControl(this)); 19 19 } 20 20 … … 27 27 28 28 public override JsonItemBaseControl Control => 29 new JsonItem RangeControl(this);29 new JsonItemBaseControl(this, new JsonItemRangeControl(this)); 30 30 } 31 31 -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/SingleValueVM.cs
r17446 r17464 15 15 16 16 public override JsonItemBaseControl Control => 17 new JsonItem IntValueControl(this);17 new JsonItemBaseControl(this, new JsonItemIntValueControl(this)); 18 18 } 19 19 … … 25 25 26 26 public override JsonItemBaseControl Control => 27 new JsonItem DoubleValueControl(this);27 new JsonItemBaseControl(this, new JsonItemDoubleValueControl(this)); 28 28 } 29 29 … … 35 35 36 36 public override JsonItemBaseControl Control => 37 new JsonItemB oolControl(this);37 new JsonItemBaseControl(this, new JsonItemBoolControl(this)); 38 38 } 39 39 -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/StringValueVM.cs
r17446 r17464 9 9 public override Type JsonItemType => typeof(StringJsonItem); 10 10 public override JsonItemBaseControl Control => 11 new JsonItem ValidValuesControl(this);11 new JsonItemBaseControl(this, new JsonItemValidValuesControl(this)); 12 12 13 13 public string Value { -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemBoolControl.Designer.cs
r17446 r17464 26 26 this.checkBoxValue = new System.Windows.Forms.CheckBox(); 27 27 this.label2 = new System.Windows.Forms.Label(); 28 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();29 28 this.SuspendLayout(); 30 29 // … … 34 33 | System.Windows.Forms.AnchorStyles.Right))); 35 34 this.checkBoxValue.AutoSize = true; 36 this.checkBoxValue.Location = new System.Drawing.Point( 92, 101);35 this.checkBoxValue.Location = new System.Drawing.Point(89, 1); 37 36 this.checkBoxValue.Name = "checkBoxValue"; 38 37 this.checkBoxValue.Size = new System.Drawing.Size(15, 14); … … 43 42 // 44 43 this.label2.AutoSize = true; 45 this.label2.Location = new System.Drawing.Point( 6, 102);44 this.label2.Location = new System.Drawing.Point(3, 1); 46 45 this.label2.Name = "label2"; 47 46 this.label2.Size = new System.Drawing.Size(34, 13); … … 53 52 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 54 53 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 54 this.Controls.Add(this.checkBoxValue); 55 55 this.Controls.Add(this.label2); 56 this.Controls.Add(this.checkBoxValue);57 this.errorProvider.SetIconAlignment(this, System.Windows.Forms.ErrorIconAlignment.MiddleLeft);58 56 this.Name = "JsonItemBoolControl"; 59 this.Size = new System.Drawing.Size(500, 121); 60 this.Controls.SetChildIndex(this.checkBoxValue, 0); 61 this.Controls.SetChildIndex(this.label2, 0); 62 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 57 this.Size = new System.Drawing.Size(500, 15); 63 58 this.ResumeLayout(false); 64 59 this.PerformLayout(); -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemBoolControl.cs
r17412 r17464 10 10 11 11 namespace HeuristicLab.JsonInterface.OptimizerIntegration { 12 public partial class JsonItemBoolControl : JsonItemBaseControl { 13 private BoolValueVM VM { get; set; } 14 15 public JsonItemBoolControl(BoolValueVM vm) : base(vm) { 12 public partial class JsonItemBoolControl : UserControl { 13 public JsonItemBoolControl(BoolValueVM vm) { 16 14 InitializeComponent(); 17 VM = vm; 18 checkBoxValue.DataBindings.Add("Checked", VM, nameof(BoolValueVM.Value)); 15 checkBoxValue.DataBindings.Add("Checked", vm, nameof(BoolValueVM.Value)); 19 16 } 20 17 } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemBoolControl.resx
r17446 r17464 118 118 <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> 119 119 </resheader> 120 <metadata name="errorProvider.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">121 <value>17, 17</value>122 </metadata>123 120 </root> -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemMultiValueControl.Designer.cs
r17446 r17464 24 24 /// </summary> 25 25 private void InitializeComponent() { 26 this.components = new System.ComponentModel.Container(); 26 27 this.dataGridView = new System.Windows.Forms.DataGridView(); 27 28 this.numericRangeControl1 = new HeuristicLab.JsonInterface.OptimizerIntegration.NumericRangeControl(); 28 29 this.groupBox1 = new System.Windows.Forms.GroupBox(); 30 this.textBoxColumns = new System.Windows.Forms.TextBox(); 29 31 this.textBoxRows = new System.Windows.Forms.TextBox(); 30 32 this.checkBoxColumns = new System.Windows.Forms.CheckBox(); 31 33 this.checkBoxRows = new System.Windows.Forms.CheckBox(); 32 this.textBoxColumns = new System.Windows.Forms.TextBox(); 33 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 34 this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components); 34 35 ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit(); 35 36 this.groupBox1.SuspendLayout(); 37 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 36 38 this.SuspendLayout(); 37 39 // … … 46 48 | System.Windows.Forms.AnchorStyles.Right))); 47 49 this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; 48 this.dataGridView.Location = new System.Drawing.Point( 6, 67);50 this.dataGridView.Location = new System.Drawing.Point(9, 70); 49 51 this.dataGridView.Name = "dataGridView"; 50 this.dataGridView.Size = new System.Drawing.Size(4 73, 192);52 this.dataGridView.Size = new System.Drawing.Size(487, 143); 51 53 this.dataGridView.TabIndex = 13; 52 54 // … … 55 57 this.numericRangeControl1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) 56 58 | System.Windows.Forms.AnchorStyles.Right))); 57 this.numericRangeControl1.Location = new System.Drawing.Point( 9, 372);59 this.numericRangeControl1.Location = new System.Drawing.Point(0, 225); 58 60 this.numericRangeControl1.Name = "numericRangeControl1"; 59 this.numericRangeControl1.Size = new System.Drawing.Size( 487, 71);61 this.numericRangeControl1.Size = new System.Drawing.Size(502, 71); 60 62 this.numericRangeControl1.TabIndex = 14; 61 63 // 62 64 // groupBox1 63 65 // 66 this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 67 | System.Windows.Forms.AnchorStyles.Left) 68 | System.Windows.Forms.AnchorStyles.Right))); 64 69 this.groupBox1.Controls.Add(this.textBoxColumns); 65 70 this.groupBox1.Controls.Add(this.textBoxRows); … … 67 72 this.groupBox1.Controls.Add(this.checkBoxRows); 68 73 this.groupBox1.Controls.Add(this.dataGridView); 69 this.groupBox1.Location = new System.Drawing.Point(9, 101); 74 this.groupBox1.Location = new System.Drawing.Point(0, 0); 75 this.groupBox1.Margin = new System.Windows.Forms.Padding(0); 70 76 this.groupBox1.Name = "groupBox1"; 71 this.groupBox1.Size = new System.Drawing.Size( 485, 265);77 this.groupBox1.Size = new System.Drawing.Size(502, 222); 72 78 this.groupBox1.TabIndex = 15; 73 79 this.groupBox1.TabStop = false; 74 80 this.groupBox1.Text = "Value"; 75 this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 76 | System.Windows.Forms.AnchorStyles.Left) 81 // 82 // textBoxColumns 83 // 84 this.textBoxColumns.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 77 85 | System.Windows.Forms.AnchorStyles.Right))); 86 this.errorProvider.SetIconAlignment(this.textBoxRows, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 87 this.textBoxColumns.Location = new System.Drawing.Point(86, 46); 88 this.textBoxColumns.Name = "textBoxColumns"; 89 this.textBoxColumns.ReadOnly = true; 90 this.textBoxColumns.Size = new System.Drawing.Size(410, 20); 91 this.textBoxColumns.TabIndex = 17; 92 this.textBoxColumns.TextChanged += new System.EventHandler(this.textBoxColumns_TextChanged); 93 this.textBoxColumns.Validating += new System.ComponentModel.CancelEventHandler(this.textBoxColumns_Validating); 78 94 // 79 95 // textBoxRows 80 96 // 81 97 this.textBoxRows.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 82 | System.Windows.Forms.AnchorStyles.Right))); 83 this.errorProvider.SetIconAlignment(this.textBox Rows, System.Windows.Forms.ErrorIconAlignment.MiddleLeft);84 this.textBoxRows.Location = new System.Drawing.Point(8 3, 17);98 | System.Windows.Forms.AnchorStyles.Right))); 99 this.errorProvider.SetIconAlignment(this.textBoxColumns, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 100 this.textBoxRows.Location = new System.Drawing.Point(86, 20); 85 101 this.textBoxRows.Name = "textBoxRows"; 86 102 this.textBoxRows.ReadOnly = true; 87 this.textBoxRows.Size = new System.Drawing.Size( 396, 20);103 this.textBoxRows.Size = new System.Drawing.Size(410, 20); 88 104 this.textBoxRows.TabIndex = 16; 89 105 this.textBoxRows.TextChanged += new System.EventHandler(this.textBoxRows_TextChanged); … … 93 109 // 94 110 this.checkBoxColumns.AutoSize = true; 95 this.checkBoxColumns.Location = new System.Drawing.Point( 7, 43);111 this.checkBoxColumns.Location = new System.Drawing.Point(10, 46); 96 112 this.checkBoxColumns.Name = "checkBoxColumns"; 97 113 this.checkBoxColumns.Size = new System.Drawing.Size(69, 17); … … 103 119 // 104 120 this.checkBoxRows.AutoSize = true; 105 this.checkBoxRows.Location = new System.Drawing.Point( 7, 20);121 this.checkBoxRows.Location = new System.Drawing.Point(10, 23); 106 122 this.checkBoxRows.Name = "checkBoxRows"; 107 123 this.checkBoxRows.Size = new System.Drawing.Size(56, 17); … … 110 126 this.checkBoxRows.UseVisualStyleBackColor = true; 111 127 // 112 // textBoxColumns128 // errorProvider 113 129 // 114 this.textBoxColumns.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 115 | System.Windows.Forms.AnchorStyles.Right))); 116 this.errorProvider.SetIconAlignment(this.textBoxColumns, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 117 this.textBoxColumns.Location = new System.Drawing.Point(83, 43); 118 this.textBoxColumns.Name = "textBoxColumns"; 119 this.textBoxColumns.ReadOnly = true; 120 this.textBoxColumns.Size = new System.Drawing.Size(396, 20); 121 this.textBoxColumns.TabIndex = 17; 122 this.textBoxColumns.TextChanged += new System.EventHandler(this.textBoxColumns_TextChanged); 123 this.textBoxColumns.Validating += new System.ComponentModel.CancelEventHandler(this.textBoxColumns_Validating); 130 this.errorProvider.ContainerControl = this; 124 131 // 125 132 // JsonItemMultiValueControl … … 131 138 this.errorProvider.SetIconAlignment(this, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 132 139 this.Name = "JsonItemMultiValueControl"; 133 this.Size = new System.Drawing.Size(502, 449); 134 this.Controls.SetChildIndex(this.numericRangeControl1, 0); 135 this.Controls.SetChildIndex(this.groupBox1, 0); 136 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 140 this.Size = new System.Drawing.Size(502, 296); 137 141 ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit(); 138 142 this.groupBox1.ResumeLayout(false); 139 143 this.groupBox1.PerformLayout(); 144 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 140 145 this.ResumeLayout(false); 141 this.PerformLayout();142 146 143 147 } … … 152 156 private System.Windows.Forms.TextBox textBoxRows; 153 157 private System.Windows.Forms.TextBox textBoxColumns; 158 private System.Windows.Forms.ErrorProvider errorProvider; 154 159 } 155 160 } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemMultiValueControl.cs
r17451 r17464 10 10 11 11 namespace HeuristicLab.JsonInterface.OptimizerIntegration { 12 12 13 13 public class JsonItemDoubleNamedMatrixValueControl : JsonItemMultiValueControl<double> { 14 14 protected override IEnumerable<string> RowNames { … … 65 65 } 66 66 67 public abstract partial class JsonItemMultiValueControl<T> : JsonItemBaseControl { 67 public abstract partial class JsonItemMultiValueControl<T> : UserControl { 68 protected IJsonItemVM VM { get; set; } 68 69 protected NumericRangeControl NumericRangeControl { get; set; } 69 70 private int _rows; … … 90 91 protected abstract IEnumerable<string> ColumnNames { get; set; } 91 92 92 public JsonItemMultiValueControl(IMatrixJsonItemVM vm, T[][] matrix) : base(vm){93 public JsonItemMultiValueControl(IMatrixJsonItemVM vm, T[][] matrix) /*: base(vm)*/ { 93 94 InitializeComponent(); 94 95 VM = vm; 95 96 checkBoxRows.DataBindings.Add("Checked", vm, nameof(IMatrixJsonItemVM.RowsResizable)); 96 97 checkBoxColumns.DataBindings.Add("Checked", vm, nameof(IMatrixJsonItemVM.ColumnsResizable)); … … 108 109 } 109 110 110 public JsonItemMultiValueControl(IArrayJsonItemVM vm, T[] array) : base(vm){111 public JsonItemMultiValueControl(IArrayJsonItemVM vm, T[] array) /*: base(vm)*/ { 111 112 InitializeComponent(); 112 113 VM = vm; 113 114 checkBoxRows.DataBindings.Add("Checked", vm, nameof(IArrayJsonItemVM.Resizable)); 114 115 … … 117 118 Matrix = new T[1][]; 118 119 Matrix[0] = array; 119 /*120 for (int r = 0; r < length; ++r) {121 Matrix[r] = new T[1];122 Matrix[r][0] = array[r];123 }124 */125 120 _cols = 1; 126 121 _rows = length; … … 158 153 T[][] tmp = Matrix; 159 154 Matrix = new T[Columns][]; 160 155 161 156 // columns must added first 162 157 if(RowNames != null && RowNames.Count() == Columns) { … … 191 186 } 192 187 dataGridView.RowHeadersWidth = 100; 188 193 189 } 194 190 -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemRangeControl.Designer.cs
r17454 r17464 24 24 /// </summary> 25 25 private void InitializeComponent() { 26 this.components = new System.ComponentModel.Container(); 26 27 this.groupBox1 = new System.Windows.Forms.GroupBox(); 27 28 this.textBoxValueTo = new System.Windows.Forms.TextBox(); … … 30 31 this.label2 = new System.Windows.Forms.Label(); 31 32 this.numericRangeControl = new HeuristicLab.JsonInterface.OptimizerIntegration.NumericRangeControl(); 33 this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components); 34 this.groupBox1.SuspendLayout(); 32 35 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 33 this.groupBox1.SuspendLayout();34 36 this.SuspendLayout(); 35 37 // … … 42 44 this.groupBox1.Controls.Add(this.label4); 43 45 this.groupBox1.Controls.Add(this.label2); 44 this.groupBox1.Location = new System.Drawing.Point(7, 101); 46 this.groupBox1.Location = new System.Drawing.Point(0, 0); 47 this.groupBox1.Margin = new System.Windows.Forms.Padding(0); 45 48 this.groupBox1.Name = "groupBox1"; 46 this.groupBox1.Size = new System.Drawing.Size( 487, 65);49 this.groupBox1.Size = new System.Drawing.Size(500, 68); 47 50 this.groupBox1.TabIndex = 17; 48 51 this.groupBox1.TabStop = false; … … 53 56 this.textBoxValueTo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 54 57 | System.Windows.Forms.AnchorStyles.Right))); 55 this.textBoxValueTo.Location = new System.Drawing.Point(8 3, 39);58 this.textBoxValueTo.Location = new System.Drawing.Point(85, 39); 56 59 this.textBoxValueTo.Name = "textBoxValueTo"; 57 this.textBoxValueTo.Size = new System.Drawing.Size( 398, 20);60 this.textBoxValueTo.Size = new System.Drawing.Size(409, 20); 58 61 this.textBoxValueTo.TabIndex = 3; 59 62 // 60 63 // textBoxValueFrom 61 64 // 62 this.textBoxValueFrom.Location = new System.Drawing.Point(83, 13); 65 this.textBoxValueFrom.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 66 | System.Windows.Forms.AnchorStyles.Right))); 67 this.textBoxValueFrom.Location = new System.Drawing.Point(85, 13); 63 68 this.textBoxValueFrom.Name = "textBoxValueFrom"; 64 this.textBoxValueFrom.Size = new System.Drawing.Size( 398, 20);69 this.textBoxValueFrom.Size = new System.Drawing.Size(409, 20); 65 70 this.textBoxValueFrom.TabIndex = 2; 66 71 // … … 91 96 this.numericRangeControl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 92 97 | System.Windows.Forms.AnchorStyles.Right))); 93 this.numericRangeControl.Location = new System.Drawing.Point( 7, 172);98 this.numericRangeControl.Location = new System.Drawing.Point(0, 71); 94 99 this.numericRangeControl.Name = "numericRangeControl"; 95 this.numericRangeControl.Size = new System.Drawing.Size( 487, 74);100 this.numericRangeControl.Size = new System.Drawing.Size(500, 74); 96 101 this.numericRangeControl.TabIndex = 18; 102 // 103 // errorProvider 104 // 105 this.errorProvider.ContainerControl = this; 97 106 // 98 107 // JsonItemRangeControl … … 104 113 this.errorProvider.SetIconAlignment(this, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 105 114 this.Name = "JsonItemRangeControl"; 106 this.Size = new System.Drawing.Size(500, 252); 107 this.Controls.SetChildIndex(this.groupBox1, 0); 108 this.Controls.SetChildIndex(this.numericRangeControl, 0); 109 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 115 this.Size = new System.Drawing.Size(500, 146); 110 116 this.groupBox1.ResumeLayout(false); 111 117 this.groupBox1.PerformLayout(); 118 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 112 119 this.ResumeLayout(false); 113 this.PerformLayout();114 120 115 121 } … … 123 129 private System.Windows.Forms.Label label2; 124 130 private NumericRangeControl numericRangeControl; 131 private System.Windows.Forms.ErrorProvider errorProvider; 125 132 } 126 133 } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemRangeControl.cs
r17454 r17464 11 11 12 12 namespace HeuristicLab.JsonInterface.OptimizerIntegration { 13 public partial class JsonItemRangeControl : JsonItemBaseControl { 13 public partial class JsonItemRangeControl : UserControl { 14 IJsonItemVM VM { get; set; } 14 15 15 public JsonItemRangeControl(DoubleRangeVM vm) : base(vm) { 16 17 public JsonItemRangeControl(DoubleRangeVM vm) { 16 18 InitializeComponent(); 19 VM = vm; 17 20 textBoxValueFrom.DataBindings.Add("Text", vm, nameof(vm.MinValue)); 18 21 textBoxValueTo.DataBindings.Add("Text", vm, nameof(vm.MaxValue)); … … 20 23 21 24 } 22 public JsonItemRangeControl(IntRangeVM vm) : base(vm){25 public JsonItemRangeControl(IntRangeVM vm) { 23 26 InitializeComponent(); 27 VM = vm; 24 28 textBoxValueFrom.DataBindings.Add("Text", vm, nameof(vm.MinValue)); 25 29 textBoxValueTo.DataBindings.Add("Text", vm, nameof(vm.MaxValue)); -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValidValuesControl.Designer.cs
r17446 r17464 24 24 /// </summary> 25 25 private void InitializeComponent() { 26 this.components = new System.ComponentModel.Container(); 26 27 this.tableOptions = new System.Windows.Forms.TableLayoutPanel(); 27 28 this.comboBoxValues = new System.Windows.Forms.ComboBox(); 28 29 this.label2 = new System.Windows.Forms.Label(); 29 30 this.groupBoxRange = new System.Windows.Forms.GroupBox(); 31 this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components); 30 32 this.groupBoxRange.SuspendLayout(); 33 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 31 34 this.SuspendLayout(); 32 35 // … … 44 47 this.tableOptions.RowCount = 1; 45 48 this.tableOptions.RowStyles.Add(new System.Windows.Forms.RowStyle()); 46 this.tableOptions.Size = new System.Drawing.Size(4 82, 170);49 this.tableOptions.Size = new System.Drawing.Size(491, 190); 47 50 this.tableOptions.TabIndex = 12; 48 51 // … … 53 56 this.comboBoxValues.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 54 57 this.comboBoxValues.FormattingEnabled = true; 55 this.comboBoxValues.Location = new System.Drawing.Point(92, 101); 58 this.comboBoxValues.Location = new System.Drawing.Point(89, 1); 59 this.comboBoxValues.Margin = new System.Windows.Forms.Padding(0); 56 60 this.comboBoxValues.Name = "comboBoxValues"; 57 this.comboBoxValues.Size = new System.Drawing.Size(40 2, 21);61 this.comboBoxValues.Size = new System.Drawing.Size(408, 21); 58 62 this.comboBoxValues.TabIndex = 15; 59 63 // … … 61 65 // 62 66 this.label2.AutoSize = true; 63 this.label2.Location = new System.Drawing.Point( 6, 104);67 this.label2.Location = new System.Drawing.Point(3, 1); 64 68 this.label2.Name = "label2"; 65 69 this.label2.Size = new System.Drawing.Size(34, 13); … … 73 77 | System.Windows.Forms.AnchorStyles.Right))); 74 78 this.groupBoxRange.Controls.Add(this.tableOptions); 75 this.groupBoxRange.Location = new System.Drawing.Point(6, 128); 79 this.groupBoxRange.Location = new System.Drawing.Point(0, 22); 80 this.groupBoxRange.Margin = new System.Windows.Forms.Padding(0, 3, 0, 0); 76 81 this.groupBoxRange.Name = "groupBoxRange"; 77 this.groupBoxRange.Size = new System.Drawing.Size(4 88, 189);82 this.groupBoxRange.Size = new System.Drawing.Size(497, 209); 78 83 this.groupBoxRange.TabIndex = 17; 79 84 this.groupBoxRange.TabStop = false; 80 85 this.groupBoxRange.Text = "Range"; 86 // 87 // errorProvider 88 // 89 this.errorProvider.ContainerControl = this; 81 90 // 82 91 // JsonItemValidValuesControl … … 88 97 this.Controls.Add(this.comboBoxValues); 89 98 this.ForeColor = System.Drawing.Color.Black; 99 this.errorProvider.SetIconAlignment(this, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 90 100 this.Name = "JsonItemValidValuesControl"; 91 this.Size = new System.Drawing.Size(500, 323); 92 this.Controls.SetChildIndex(this.comboBoxValues, 0); 93 this.Controls.SetChildIndex(this.label2, 0); 94 this.Controls.SetChildIndex(this.groupBoxRange, 0); 101 this.Size = new System.Drawing.Size(500, 231); 95 102 this.groupBoxRange.ResumeLayout(false); 103 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 96 104 this.ResumeLayout(false); 97 105 this.PerformLayout(); … … 104 112 private System.Windows.Forms.Label label2; 105 113 private System.Windows.Forms.GroupBox groupBoxRange; 114 private System.Windows.Forms.ErrorProvider errorProvider; 106 115 } 107 116 } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValidValuesControl.cs
r17443 r17464 10 10 11 11 namespace HeuristicLab.JsonInterface.OptimizerIntegration { 12 public partial class JsonItemValidValuesControl : JsonItemBaseControl {12 public partial class JsonItemValidValuesControl : UserControl { 13 13 14 public JsonItemValidValuesControl(StringValueVM vm) : base(vm) { 14 IJsonItemVM VM { get; set; } 15 16 public JsonItemValidValuesControl(StringValueVM vm) { 15 17 InitializeComponent(); 18 VM = vm; 16 19 if (VM.Item.Range != null) { 17 20 foreach (var i in VM.Item.Range) -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValidValuesControl.resx
r17404 r17464 118 118 <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> 119 119 </resheader> 120 <metadata name="errorProvider.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 121 <value>17, 17</value> 122 </metadata> 120 123 </root> -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValueControl.Designer.cs
r17444 r17464 24 24 /// </summary> 25 25 private void InitializeComponent() { 26 this.components = new System.ComponentModel.Container(); 26 27 this.textBoxValue = new System.Windows.Forms.TextBox(); 27 28 this.label2 = new System.Windows.Forms.Label(); 28 29 this.numericRangeControl1 = new HeuristicLab.JsonInterface.OptimizerIntegration.NumericRangeControl(); 30 this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components); 31 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 29 32 this.SuspendLayout(); 30 33 // … … 33 36 this.textBoxValue.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 34 37 | System.Windows.Forms.AnchorStyles.Right))); 35 this.textBoxValue.Location = new System.Drawing.Point(92, 101); 38 this.textBoxValue.Location = new System.Drawing.Point(89, 1); 39 this.textBoxValue.Margin = new System.Windows.Forms.Padding(0); 36 40 this.textBoxValue.Name = "textBoxValue"; 37 this.textBoxValue.Size = new System.Drawing.Size(40 2, 20);41 this.textBoxValue.Size = new System.Drawing.Size(408, 20); 38 42 this.textBoxValue.TabIndex = 14; 39 43 this.textBoxValue.Validating += new System.ComponentModel.CancelEventHandler(this.textBoxValue_Validating); … … 42 46 // 43 47 this.label2.AutoSize = true; 44 this.label2.Location = new System.Drawing.Point( 6, 104);48 this.label2.Location = new System.Drawing.Point(3, 1); 45 49 this.label2.Name = "label2"; 46 50 this.label2.Size = new System.Drawing.Size(34, 13); … … 52 56 this.numericRangeControl1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 53 57 | System.Windows.Forms.AnchorStyles.Right))); 54 this.numericRangeControl1.Location = new System.Drawing.Point(9, 125); 58 this.numericRangeControl1.Location = new System.Drawing.Point(0, 24); 59 this.numericRangeControl1.Margin = new System.Windows.Forms.Padding(0, 3, 0, 0); 55 60 this.numericRangeControl1.Name = "numericRangeControl1"; 56 this.numericRangeControl1.Size = new System.Drawing.Size(4 85, 72);61 this.numericRangeControl1.Size = new System.Drawing.Size(497, 72); 57 62 this.numericRangeControl1.TabIndex = 16; 63 // 64 // errorProvider 65 // 66 this.errorProvider.ContainerControl = this; 58 67 // 59 68 // JsonItemValueControl … … 64 73 this.Controls.Add(this.label2); 65 74 this.Controls.Add(this.textBoxValue); 75 this.errorProvider.SetIconAlignment(this, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 66 76 this.Name = "JsonItemValueControl"; 67 this.Size = new System.Drawing.Size(500, 199); 68 this.Controls.SetChildIndex(this.textBoxValue, 0); 69 this.Controls.SetChildIndex(this.label2, 0); 70 this.Controls.SetChildIndex(this.numericRangeControl1, 0); 77 this.Size = new System.Drawing.Size(500, 97); 78 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 71 79 this.ResumeLayout(false); 72 80 this.PerformLayout(); … … 79 87 private System.Windows.Forms.Label label2; 80 88 private NumericRangeControl numericRangeControl1; 89 private System.Windows.Forms.ErrorProvider errorProvider; 81 90 } 82 91 } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValueControl.cs
r17444 r17464 34 34 } 35 35 36 public abstract partial class JsonItemValueControl : JsonItemBaseControl {36 public abstract partial class JsonItemValueControl : UserControl { 37 37 #region Protected Properties 38 protected IJsonItemVM VM { get; set; } 38 39 protected TextBox TBValue { get; set; } 39 40 protected NumericRangeControl NumericRangeControl { get; set; } … … 44 45 #endregion 45 46 46 public JsonItemValueControl(JsonItemVMBase vm) : base(vm){47 public JsonItemValueControl(JsonItemVMBase vm) { 47 48 InitializeComponent(); 49 VM = vm; 48 50 TBValue = textBoxValue; 49 51 NumericRangeControl = numericRangeControl1; … … 51 53 52 54 protected void Init() { 53 TBValue.DataBindings.Add("Text", base.VM, ValuePropertyId);55 TBValue.DataBindings.Add("Text", VM, ValuePropertyId); 54 56 NumericRangeControl.TBMinRange.DataBindings.Add("Text", VM, nameof(RangedValueBaseVM.MinRange)); 55 57 NumericRangeControl.TBMaxRange.DataBindings.Add("Text", VM, nameof(RangedValueBaseVM.MaxRange)); -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValueControl.resx
r17404 r17464 118 118 <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> 119 119 </resheader> 120 <metadata name="errorProvider.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 121 <value>17, 17</value> 122 </metadata> 120 123 </root> -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/RegressionProblemDataConverter.cs
r17451 r17464 17 17 18 18 public override void Inject(IItem item, IJsonItem data, IJsonItemConverter root) { 19 //Dictionary<string, IList<double>> dict = null;20 19 var dictTmp = new Dictionary<string, IList>(); 21 /*if (data.Children[0].Value is JObject jObj) {22 dict = jObj.ToObject<Dictionary<string, IList<double>>>();23 foreach (var x in dict) {24 dictTmp.Add(x.Key, (IList)x.Value);25 }26 } else if(data.Children[0].Value is Dictionary<string, IList<double>> d) {27 dict = d;28 } else {29 dictTmp = (Dictionary<string, IList>)data.Children[0].Value;30 }31 */32 20 DoubleNamedMatrixJsonItem matrix = data.Children[0] as DoubleNamedMatrixJsonItem; 33 21 if(matrix != null) { … … 74 62 int r = 0; 75 63 foreach(var rowValue in x.Value) { 64 // TODO: for integers and bools aswell 76 65 mat[c][r] = (double)rowValue; 77 66 ++r;
Note: See TracChangeset
for help on using the changeset viewer.