Free cookie consent management tool by TermsFeed Policy Generator

Changeset 17464


Ignore:
Timestamp:
03/02/20 15:53:52 (4 years ago)
Author:
dpiringe
Message:

#3026:

  • Runner now uses SymbolicDataAnalysisExpressionMATLABFormatter to save instances of ISymbolicRegressionSolution
  • refactored user controls for detail view of json items, now they do not inherit from JsonItemBaseControl -> JsonItemBaseControl uses now an extra control
    • this change was made for fluid repositioning of controls (e.g. when no ActualName is present)
Location:
branches/3026_IntegrationIntoSymSpace
Files:
26 edited

Legend:

Unmodified
Added
Removed
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.App/HeuristicLab.JsonInterface.App.csproj

    r17453 r17464  
    8181      <Name>HeuristicLab.Core-3.3</Name>
    8282    </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>
    8387    <ProjectReference Include="..\HeuristicLab.JsonInterface\HeuristicLab.JsonInterface.csproj">
    8488      <Project>{0e3aab5e-f152-44e0-a054-4d9a83ecee08}</Project>
     
    96100      <Project>{94186a6a-5176-4402-ae83-886557b53cca}</Project>
    97101      <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>
    98114    </ProjectReference>
    99115    <ProjectReference Include="..\HeuristicLab.Problems.Instances\3.3\HeuristicLab.Problems.Instances-3.3.csproj">
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.App/Runner.cs

    r17453 r17464  
    88using HeuristicLab.Optimization;
    99using HeuristicLab.ParallelEngine;
     10using HeuristicLab.Problems.DataAnalysis.Symbolic;
     11using HeuristicLab.Problems.DataAnalysis.Symbolic.Regression;
    1012using HeuristicLab.SequentialEngine;
    1113using Newtonsoft.Json.Linq;
     
    3941        obj.Add("Run", JToken.FromObject(run.ToString()));
    4042        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          }
    4351        }
    4452      }
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/HeuristicLab.JsonInterface.OptimizerIntegration.csproj

    r17451 r17464  
    6666      <HintPath>..\bin\HeuristicLab.Optimization.Views-3.3.dll</HintPath>
    6767    </Reference>
     68    <Reference Include="PresentationCore" />
     69    <Reference Include="PresentationFramework" />
    6870    <Reference Include="System" />
    6971    <Reference Include="System.Core" />
    7072    <Reference Include="System.Drawing" />
     73    <Reference Include="System.Messaging" />
    7174    <Reference Include="System.Windows.Forms" />
     75    <Reference Include="System.Xaml" />
    7276    <Reference Include="System.Xml.Linq" />
    7377    <Reference Include="System.Data.DataSetExtensions" />
     
    7680    <Reference Include="System.Net.Http" />
    7781    <Reference Include="System.Xml" />
     82    <Reference Include="UIAutomationProvider" />
     83    <Reference Include="WindowsBase" />
     84    <Reference Include="WindowsFormsIntegration" />
    7885  </ItemGroup>
    7986  <ItemGroup>
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared/JsonItemBaseControl.Designer.cs

    r17444 r17464  
    2525    private void InitializeComponent() {
    2626      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();
    2739      this.labelEnable = new System.Windows.Forms.Label();
    2840      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);
    3641      ((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();
    3747      this.SuspendLayout();
    3848      //
    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;
    5885      //
    5986      // textBoxActualName
     
    6188      this.textBoxActualName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    6289            | 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);
    6491      this.textBoxActualName.Name = "textBoxActualName";
    65       this.textBoxActualName.Size = new System.Drawing.Size(402, 20);
     92      this.textBoxActualName.Size = new System.Drawing.Size(396, 20);
    6693      this.textBoxActualName.TabIndex = 12;
    6794      //
     
    6996      //
    7097      this.labelActualName.AutoSize = true;
    71       this.labelActualName.Location = new System.Drawing.Point(6, 78);
     98      this.labelActualName.Location = new System.Drawing.Point(6, 6);
    7299      this.labelActualName.Name = "labelActualName";
    73100      this.labelActualName.Size = new System.Drawing.Size(65, 13);
     
    76103      this.labelActualName.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
    77104      //
     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      //
    78145      // textBoxName
    79146      //
     
    81148            | System.Windows.Forms.AnchorStyles.Right)));
    82149      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);
    84151      this.textBoxName.Name = "textBoxName";
    85       this.textBoxName.Size = new System.Drawing.Size(402, 20);
     152      this.textBoxName.Size = new System.Drawing.Size(396, 20);
    86153      this.textBoxName.TabIndex = 10;
    87154      this.textBoxName.Validating += new System.ComponentModel.CancelEventHandler(this.textBoxName_Validating);
     
    90157      //
    91158      this.label1.AutoSize = true;
    92       this.label1.Location = new System.Drawing.Point(6, 26);
     159      this.label1.Location = new System.Drawing.Point(6, 6);
    93160      this.label1.Name = "label1";
    94161      this.label1.Size = new System.Drawing.Size(35, 13);
     
    97164      this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
    98165      //
    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;
    121196      //
    122197      // JsonItemBaseControl
     
    124199      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    125200      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);
    134202      this.errorProvider.SetIconAlignment(this, System.Windows.Forms.ErrorIconAlignment.MiddleLeft);
    135203      this.Name = "JsonItemBaseControl";
    136204      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);
    138206      ((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();
    139216      this.ResumeLayout(false);
    140       this.PerformLayout();
    141217
    142218    }
    143219
    144220    #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;
    154221    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;
    155235  }
    156236}
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared/JsonItemBaseControl.cs

    r17446 r17464  
    2020      InitializeComponent();
    2121      VM = vm;
     22      Init();
     23    }
    2224
     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() {
    2334      checkBoxActive.DataBindings.Add("Checked", VM, nameof(IJsonItemVM.Selected),
    2435        false, DataSourceUpdateMode.OnPropertyChanged);
     
    2738      textBoxActualName.DataBindings.Add("Text", VM, nameof(IJsonItemVM.ActualName));
    2839
    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
    3246        textBoxActualName.Text = VM.Item.ActualName;
    33 
    3447    }
    3548
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared/NumericRangeControl.Designer.cs

    r17446 r17464  
    4040            | System.Windows.Forms.AnchorStyles.Right)));
    4141      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);
    4343      this.textBoxFrom.Name = "textBoxFrom";
    4444      this.textBoxFrom.ReadOnly = true;
    45       this.textBoxFrom.Size = new System.Drawing.Size(253, 20);
     45      this.textBoxFrom.Size = new System.Drawing.Size(407, 20);
    4646      this.textBoxFrom.TabIndex = 2;
    4747      this.textBoxFrom.Validating += new System.ComponentModel.CancelEventHandler(this.textBoxFrom_Validating);
     
    5656      this.groupBox2.Location = new System.Drawing.Point(0, 0);
    5757      this.groupBox2.Name = "groupBox2";
    58       this.groupBox2.Size = new System.Drawing.Size(326, 75);
     58      this.groupBox2.Size = new System.Drawing.Size(500, 75);
    5959      this.groupBox2.TabIndex = 19;
    6060      this.groupBox2.TabStop = false;
     
    7676            | System.Windows.Forms.AnchorStyles.Right)));
    7777      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);
    7979      this.textBoxTo.Name = "textBoxTo";
    8080      this.textBoxTo.ReadOnly = true;
    81       this.textBoxTo.Size = new System.Drawing.Size(253, 20);
     81      this.textBoxTo.Size = new System.Drawing.Size(407, 20);
    8282      this.textBoxTo.TabIndex = 6;
    8383      this.textBoxTo.Validating += new System.ComponentModel.CancelEventHandler(this.textBoxTo_Validating);
     
    104104      this.Controls.Add(this.groupBox2);
    105105      this.Name = "NumericRangeControl";
    106       this.Size = new System.Drawing.Size(326, 75);
     106      this.Size = new System.Drawing.Size(500, 75);
    107107      this.groupBox2.ResumeLayout(false);
    108108      this.groupBox2.PerformLayout();
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/ArrayValueVM.cs

    r17446 r17464  
    1616
    1717    public override JsonItemBaseControl Control =>
    18       new JsonItemDoubleArrayValueControl(this);
     18      new JsonItemBaseControl(this, new JsonItemDoubleArrayValueControl(this));
    1919   
    2020    public override double[] Value {
     
    3535
    3636    public override JsonItemBaseControl Control =>
    37       new JsonItemIntArrayValueControl(this);
     37      new JsonItemBaseControl(this, new JsonItemIntArrayValueControl(this));
    3838   
    3939    public override int[] Value {
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/MatrixValueVM.cs

    r17446 r17464  
    1010  public class DoubleMatrixValueVM : MatrixValueVM<double, DoubleMatrixJsonItem> {
    1111    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);
    1414
    1515    public override double[][] Value {
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/NamedMatrixValueVM.cs

    r17451 r17464  
    99    public override Type JsonItemType => typeof(DoubleNamedMatrixJsonItem);
    1010    public override JsonItemBaseControl Control =>
    11       new JsonItemDoubleNamedMatrixValueControl(this);
     11      new JsonItemBaseControl(this, new JsonItemDoubleNamedMatrixValueControl(this));
    1212
    1313    public override double[][] Value {
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/RangeVM.cs

    r17454 r17464  
    1616
    1717    public override JsonItemBaseControl Control =>
    18       new JsonItemRangeControl(this);
     18      new JsonItemBaseControl(this, new JsonItemRangeControl(this));
    1919  }
    2020
     
    2727
    2828    public override JsonItemBaseControl Control =>
    29       new JsonItemRangeControl(this);
     29      new JsonItemBaseControl(this, new JsonItemRangeControl(this));
    3030  }
    3131
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/SingleValueVM.cs

    r17446 r17464  
    1515
    1616    public override JsonItemBaseControl Control =>
    17       new JsonItemIntValueControl(this);
     17      new JsonItemBaseControl(this, new JsonItemIntValueControl(this));
    1818  }
    1919
     
    2525
    2626    public override JsonItemBaseControl Control =>
    27        new JsonItemDoubleValueControl(this);
     27       new JsonItemBaseControl(this, new JsonItemDoubleValueControl(this));
    2828  }
    2929
     
    3535
    3636    public override JsonItemBaseControl Control =>
    37        new JsonItemBoolControl(this);
     37       new JsonItemBaseControl(this, new JsonItemBoolControl(this));
    3838  }
    3939
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/StringValueVM.cs

    r17446 r17464  
    99    public override Type JsonItemType => typeof(StringJsonItem);
    1010    public override JsonItemBaseControl Control =>
    11        new JsonItemValidValuesControl(this);
     11       new JsonItemBaseControl(this, new JsonItemValidValuesControl(this));
    1212
    1313    public string Value {
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemBoolControl.Designer.cs

    r17446 r17464  
    2626      this.checkBoxValue = new System.Windows.Forms.CheckBox();
    2727      this.label2 = new System.Windows.Forms.Label();
    28       ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
    2928      this.SuspendLayout();
    3029      //
     
    3433            | System.Windows.Forms.AnchorStyles.Right)));
    3534      this.checkBoxValue.AutoSize = true;
    36       this.checkBoxValue.Location = new System.Drawing.Point(92, 101);
     35      this.checkBoxValue.Location = new System.Drawing.Point(89, 1);
    3736      this.checkBoxValue.Name = "checkBoxValue";
    3837      this.checkBoxValue.Size = new System.Drawing.Size(15, 14);
     
    4342      //
    4443      this.label2.AutoSize = true;
    45       this.label2.Location = new System.Drawing.Point(6, 102);
     44      this.label2.Location = new System.Drawing.Point(3, 1);
    4645      this.label2.Name = "label2";
    4746      this.label2.Size = new System.Drawing.Size(34, 13);
     
    5352      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    5453      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     54      this.Controls.Add(this.checkBoxValue);
    5555      this.Controls.Add(this.label2);
    56       this.Controls.Add(this.checkBoxValue);
    57       this.errorProvider.SetIconAlignment(this, System.Windows.Forms.ErrorIconAlignment.MiddleLeft);
    5856      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);
    6358      this.ResumeLayout(false);
    6459      this.PerformLayout();
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemBoolControl.cs

    r17412 r17464  
    1010
    1111namespace 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) {
    1614      InitializeComponent();
    17       VM = vm;
    18       checkBoxValue.DataBindings.Add("Checked", VM, nameof(BoolValueVM.Value));
     15      checkBoxValue.DataBindings.Add("Checked", vm, nameof(BoolValueVM.Value));
    1916    }
    2017  }
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemBoolControl.resx

    r17446 r17464  
    118118    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
    119119  </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>
    123120</root>
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemMultiValueControl.Designer.cs

    r17446 r17464  
    2424    /// </summary>
    2525    private void InitializeComponent() {
     26      this.components = new System.ComponentModel.Container();
    2627      this.dataGridView = new System.Windows.Forms.DataGridView();
    2728      this.numericRangeControl1 = new HeuristicLab.JsonInterface.OptimizerIntegration.NumericRangeControl();
    2829      this.groupBox1 = new System.Windows.Forms.GroupBox();
     30      this.textBoxColumns = new System.Windows.Forms.TextBox();
    2931      this.textBoxRows = new System.Windows.Forms.TextBox();
    3032      this.checkBoxColumns = new System.Windows.Forms.CheckBox();
    3133      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);
    3435      ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
    3536      this.groupBox1.SuspendLayout();
     37      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
    3638      this.SuspendLayout();
    3739      //
     
    4648            | System.Windows.Forms.AnchorStyles.Right)));
    4749      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);
    4951      this.dataGridView.Name = "dataGridView";
    50       this.dataGridView.Size = new System.Drawing.Size(473, 192);
     52      this.dataGridView.Size = new System.Drawing.Size(487, 143);
    5153      this.dataGridView.TabIndex = 13;
    5254      //
     
    5557      this.numericRangeControl1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
    5658            | 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);
    5860      this.numericRangeControl1.Name = "numericRangeControl1";
    59       this.numericRangeControl1.Size = new System.Drawing.Size(487, 71);
     61      this.numericRangeControl1.Size = new System.Drawing.Size(502, 71);
    6062      this.numericRangeControl1.TabIndex = 14;
    6163      //
    6264      // groupBox1
    6365      //
     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)));
    6469      this.groupBox1.Controls.Add(this.textBoxColumns);
    6570      this.groupBox1.Controls.Add(this.textBoxRows);
     
    6772      this.groupBox1.Controls.Add(this.checkBoxRows);
    6873      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);
    7076      this.groupBox1.Name = "groupBox1";
    71       this.groupBox1.Size = new System.Drawing.Size(485, 265);
     77      this.groupBox1.Size = new System.Drawing.Size(502, 222);
    7278      this.groupBox1.TabIndex = 15;
    7379      this.groupBox1.TabStop = false;
    7480      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)
    7785            | 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);
    7894      //
    7995      // textBoxRows
    8096      //
    8197      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.textBoxRows, System.Windows.Forms.ErrorIconAlignment.MiddleLeft);
    84       this.textBoxRows.Location = new System.Drawing.Point(83, 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);
    85101      this.textBoxRows.Name = "textBoxRows";
    86102      this.textBoxRows.ReadOnly = true;
    87       this.textBoxRows.Size = new System.Drawing.Size(396, 20);
     103      this.textBoxRows.Size = new System.Drawing.Size(410, 20);
    88104      this.textBoxRows.TabIndex = 16;
    89105      this.textBoxRows.TextChanged += new System.EventHandler(this.textBoxRows_TextChanged);
     
    93109      //
    94110      this.checkBoxColumns.AutoSize = true;
    95       this.checkBoxColumns.Location = new System.Drawing.Point(7, 43);
     111      this.checkBoxColumns.Location = new System.Drawing.Point(10, 46);
    96112      this.checkBoxColumns.Name = "checkBoxColumns";
    97113      this.checkBoxColumns.Size = new System.Drawing.Size(69, 17);
     
    103119      //
    104120      this.checkBoxRows.AutoSize = true;
    105       this.checkBoxRows.Location = new System.Drawing.Point(7, 20);
     121      this.checkBoxRows.Location = new System.Drawing.Point(10, 23);
    106122      this.checkBoxRows.Name = "checkBoxRows";
    107123      this.checkBoxRows.Size = new System.Drawing.Size(56, 17);
     
    110126      this.checkBoxRows.UseVisualStyleBackColor = true;
    111127      //
    112       // textBoxColumns
     128      // errorProvider
    113129      //
    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;
    124131      //
    125132      // JsonItemMultiValueControl
     
    131138      this.errorProvider.SetIconAlignment(this, System.Windows.Forms.ErrorIconAlignment.MiddleLeft);
    132139      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);
    137141      ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
    138142      this.groupBox1.ResumeLayout(false);
    139143      this.groupBox1.PerformLayout();
     144      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit();
    140145      this.ResumeLayout(false);
    141       this.PerformLayout();
    142146
    143147    }
     
    152156    private System.Windows.Forms.TextBox textBoxRows;
    153157    private System.Windows.Forms.TextBox textBoxColumns;
     158    private System.Windows.Forms.ErrorProvider errorProvider;
    154159  }
    155160}
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemMultiValueControl.cs

    r17451 r17464  
    1010
    1111namespace HeuristicLab.JsonInterface.OptimizerIntegration {
    12 
     12 
    1313  public class JsonItemDoubleNamedMatrixValueControl : JsonItemMultiValueControl<double> {
    1414    protected override IEnumerable<string> RowNames {
     
    6565  }
    6666 
    67   public abstract partial class JsonItemMultiValueControl<T> : JsonItemBaseControl {
     67  public abstract partial class JsonItemMultiValueControl<T> : UserControl {
     68    protected IJsonItemVM VM { get; set; }
    6869    protected NumericRangeControl NumericRangeControl { get; set; }
    6970    private int _rows;
     
    9091    protected abstract IEnumerable<string> ColumnNames { get; set; }
    9192
    92     public JsonItemMultiValueControl(IMatrixJsonItemVM vm, T[][] matrix) : base(vm) {
     93    public JsonItemMultiValueControl(IMatrixJsonItemVM vm, T[][] matrix) /*: base(vm)*/ {
    9394      InitializeComponent();
    94 
     95      VM = vm;
    9596      checkBoxRows.DataBindings.Add("Checked", vm, nameof(IMatrixJsonItemVM.RowsResizable));
    9697      checkBoxColumns.DataBindings.Add("Checked", vm, nameof(IMatrixJsonItemVM.ColumnsResizable));
     
    108109    }
    109110   
    110     public JsonItemMultiValueControl(IArrayJsonItemVM vm, T[] array) : base(vm) {
     111    public JsonItemMultiValueControl(IArrayJsonItemVM vm, T[] array) /*: base(vm)*/ {
    111112      InitializeComponent();
    112 
     113      VM = vm;
    113114      checkBoxRows.DataBindings.Add("Checked", vm, nameof(IArrayJsonItemVM.Resizable));
    114115
     
    117118      Matrix = new T[1][];
    118119      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       */
    125120      _cols = 1;
    126121      _rows = length;
     
    158153      T[][] tmp = Matrix;
    159154      Matrix = new T[Columns][];
    160 
     155     
    161156      // columns must added first
    162157      if(RowNames != null && RowNames.Count() == Columns) {
     
    191186      }
    192187      dataGridView.RowHeadersWidth = 100;
     188     
    193189    }
    194190
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemRangeControl.Designer.cs

    r17454 r17464  
    2424    /// </summary>
    2525    private void InitializeComponent() {
     26      this.components = new System.ComponentModel.Container();
    2627      this.groupBox1 = new System.Windows.Forms.GroupBox();
    2728      this.textBoxValueTo = new System.Windows.Forms.TextBox();
     
    3031      this.label2 = new System.Windows.Forms.Label();
    3132      this.numericRangeControl = new HeuristicLab.JsonInterface.OptimizerIntegration.NumericRangeControl();
     33      this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components);
     34      this.groupBox1.SuspendLayout();
    3235      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
    33       this.groupBox1.SuspendLayout();
    3436      this.SuspendLayout();
    3537      //
     
    4244      this.groupBox1.Controls.Add(this.label4);
    4345      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);
    4548      this.groupBox1.Name = "groupBox1";
    46       this.groupBox1.Size = new System.Drawing.Size(487, 65);
     49      this.groupBox1.Size = new System.Drawing.Size(500, 68);
    4750      this.groupBox1.TabIndex = 17;
    4851      this.groupBox1.TabStop = false;
     
    5356      this.textBoxValueTo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    5457            | System.Windows.Forms.AnchorStyles.Right)));
    55       this.textBoxValueTo.Location = new System.Drawing.Point(83, 39);
     58      this.textBoxValueTo.Location = new System.Drawing.Point(85, 39);
    5659      this.textBoxValueTo.Name = "textBoxValueTo";
    57       this.textBoxValueTo.Size = new System.Drawing.Size(398, 20);
     60      this.textBoxValueTo.Size = new System.Drawing.Size(409, 20);
    5861      this.textBoxValueTo.TabIndex = 3;
    5962      //
    6063      // textBoxValueFrom
    6164      //
    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);
    6368      this.textBoxValueFrom.Name = "textBoxValueFrom";
    64       this.textBoxValueFrom.Size = new System.Drawing.Size(398, 20);
     69      this.textBoxValueFrom.Size = new System.Drawing.Size(409, 20);
    6570      this.textBoxValueFrom.TabIndex = 2;
    6671      //
     
    9196      this.numericRangeControl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    9297            | 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);
    9499      this.numericRangeControl.Name = "numericRangeControl";
    95       this.numericRangeControl.Size = new System.Drawing.Size(487, 74);
     100      this.numericRangeControl.Size = new System.Drawing.Size(500, 74);
    96101      this.numericRangeControl.TabIndex = 18;
     102      //
     103      // errorProvider
     104      //
     105      this.errorProvider.ContainerControl = this;
    97106      //
    98107      // JsonItemRangeControl
     
    104113      this.errorProvider.SetIconAlignment(this, System.Windows.Forms.ErrorIconAlignment.MiddleLeft);
    105114      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);
    110116      this.groupBox1.ResumeLayout(false);
    111117      this.groupBox1.PerformLayout();
     118      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit();
    112119      this.ResumeLayout(false);
    113       this.PerformLayout();
    114120
    115121    }
     
    123129    private System.Windows.Forms.Label label2;
    124130    private NumericRangeControl numericRangeControl;
     131    private System.Windows.Forms.ErrorProvider errorProvider;
    125132  }
    126133}
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemRangeControl.cs

    r17454 r17464  
    1111
    1212namespace HeuristicLab.JsonInterface.OptimizerIntegration {
    13   public partial class JsonItemRangeControl : JsonItemBaseControl {
     13  public partial class JsonItemRangeControl : UserControl {
     14    IJsonItemVM VM { get; set; }
    1415
    15     public JsonItemRangeControl(DoubleRangeVM vm) : base(vm) {
     16
     17    public JsonItemRangeControl(DoubleRangeVM vm) {
    1618      InitializeComponent();
     19      VM = vm;
    1720      textBoxValueFrom.DataBindings.Add("Text", vm, nameof(vm.MinValue));
    1821      textBoxValueTo.DataBindings.Add("Text", vm, nameof(vm.MaxValue));
     
    2023
    2124    }
    22     public JsonItemRangeControl(IntRangeVM vm) : base(vm) {
     25    public JsonItemRangeControl(IntRangeVM vm) {
    2326      InitializeComponent();
     27      VM = vm;
    2428      textBoxValueFrom.DataBindings.Add("Text", vm, nameof(vm.MinValue));
    2529      textBoxValueTo.DataBindings.Add("Text", vm, nameof(vm.MaxValue));
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValidValuesControl.Designer.cs

    r17446 r17464  
    2424    /// </summary>
    2525    private void InitializeComponent() {
     26      this.components = new System.ComponentModel.Container();
    2627      this.tableOptions = new System.Windows.Forms.TableLayoutPanel();
    2728      this.comboBoxValues = new System.Windows.Forms.ComboBox();
    2829      this.label2 = new System.Windows.Forms.Label();
    2930      this.groupBoxRange = new System.Windows.Forms.GroupBox();
     31      this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components);
    3032      this.groupBoxRange.SuspendLayout();
     33      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
    3134      this.SuspendLayout();
    3235      //
     
    4447      this.tableOptions.RowCount = 1;
    4548      this.tableOptions.RowStyles.Add(new System.Windows.Forms.RowStyle());
    46       this.tableOptions.Size = new System.Drawing.Size(482, 170);
     49      this.tableOptions.Size = new System.Drawing.Size(491, 190);
    4750      this.tableOptions.TabIndex = 12;
    4851      //
     
    5356      this.comboBoxValues.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
    5457      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);
    5660      this.comboBoxValues.Name = "comboBoxValues";
    57       this.comboBoxValues.Size = new System.Drawing.Size(402, 21);
     61      this.comboBoxValues.Size = new System.Drawing.Size(408, 21);
    5862      this.comboBoxValues.TabIndex = 15;
    5963      //
     
    6165      //
    6266      this.label2.AutoSize = true;
    63       this.label2.Location = new System.Drawing.Point(6, 104);
     67      this.label2.Location = new System.Drawing.Point(3, 1);
    6468      this.label2.Name = "label2";
    6569      this.label2.Size = new System.Drawing.Size(34, 13);
     
    7377            | System.Windows.Forms.AnchorStyles.Right)));
    7478      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);
    7681      this.groupBoxRange.Name = "groupBoxRange";
    77       this.groupBoxRange.Size = new System.Drawing.Size(488, 189);
     82      this.groupBoxRange.Size = new System.Drawing.Size(497, 209);
    7883      this.groupBoxRange.TabIndex = 17;
    7984      this.groupBoxRange.TabStop = false;
    8085      this.groupBoxRange.Text = "Range";
     86      //
     87      // errorProvider
     88      //
     89      this.errorProvider.ContainerControl = this;
    8190      //
    8291      // JsonItemValidValuesControl
     
    8897      this.Controls.Add(this.comboBoxValues);
    8998      this.ForeColor = System.Drawing.Color.Black;
     99      this.errorProvider.SetIconAlignment(this, System.Windows.Forms.ErrorIconAlignment.MiddleLeft);
    90100      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);
    95102      this.groupBoxRange.ResumeLayout(false);
     103      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit();
    96104      this.ResumeLayout(false);
    97105      this.PerformLayout();
     
    104112    private System.Windows.Forms.Label label2;
    105113    private System.Windows.Forms.GroupBox groupBoxRange;
     114    private System.Windows.Forms.ErrorProvider errorProvider;
    106115  }
    107116}
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValidValuesControl.cs

    r17443 r17464  
    1010
    1111namespace HeuristicLab.JsonInterface.OptimizerIntegration {
    12   public partial class JsonItemValidValuesControl : JsonItemBaseControl {
     12  public partial class JsonItemValidValuesControl : UserControl {
    1313
    14     public JsonItemValidValuesControl(StringValueVM vm) : base(vm) {
     14    IJsonItemVM VM { get; set; }
     15
     16    public JsonItemValidValuesControl(StringValueVM vm) {
    1517      InitializeComponent();
     18      VM = vm;
    1619      if (VM.Item.Range != null) {
    1720        foreach (var i in VM.Item.Range)
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValidValuesControl.resx

    r17404 r17464  
    118118    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
    119119  </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>
    120123</root>
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValueControl.Designer.cs

    r17444 r17464  
    2424    /// </summary>
    2525    private void InitializeComponent() {
     26      this.components = new System.ComponentModel.Container();
    2627      this.textBoxValue = new System.Windows.Forms.TextBox();
    2728      this.label2 = new System.Windows.Forms.Label();
    2829      this.numericRangeControl1 = new HeuristicLab.JsonInterface.OptimizerIntegration.NumericRangeControl();
     30      this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components);
     31      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
    2932      this.SuspendLayout();
    3033      //
     
    3336      this.textBoxValue.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    3437            | 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);
    3640      this.textBoxValue.Name = "textBoxValue";
    37       this.textBoxValue.Size = new System.Drawing.Size(402, 20);
     41      this.textBoxValue.Size = new System.Drawing.Size(408, 20);
    3842      this.textBoxValue.TabIndex = 14;
    3943      this.textBoxValue.Validating += new System.ComponentModel.CancelEventHandler(this.textBoxValue_Validating);
     
    4246      //
    4347      this.label2.AutoSize = true;
    44       this.label2.Location = new System.Drawing.Point(6, 104);
     48      this.label2.Location = new System.Drawing.Point(3, 1);
    4549      this.label2.Name = "label2";
    4650      this.label2.Size = new System.Drawing.Size(34, 13);
     
    5256      this.numericRangeControl1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    5357            | 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);
    5560      this.numericRangeControl1.Name = "numericRangeControl1";
    56       this.numericRangeControl1.Size = new System.Drawing.Size(485, 72);
     61      this.numericRangeControl1.Size = new System.Drawing.Size(497, 72);
    5762      this.numericRangeControl1.TabIndex = 16;
     63      //
     64      // errorProvider
     65      //
     66      this.errorProvider.ContainerControl = this;
    5867      //
    5968      // JsonItemValueControl
     
    6473      this.Controls.Add(this.label2);
    6574      this.Controls.Add(this.textBoxValue);
     75      this.errorProvider.SetIconAlignment(this, System.Windows.Forms.ErrorIconAlignment.MiddleLeft);
    6676      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();
    7179      this.ResumeLayout(false);
    7280      this.PerformLayout();
     
    7987    private System.Windows.Forms.Label label2;
    8088    private NumericRangeControl numericRangeControl1;
     89    private System.Windows.Forms.ErrorProvider errorProvider;
    8190  }
    8291}
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValueControl.cs

    r17444 r17464  
    3434  }
    3535 
    36   public abstract partial class JsonItemValueControl : JsonItemBaseControl {
     36  public abstract partial class JsonItemValueControl : UserControl {
    3737    #region Protected Properties
     38    protected IJsonItemVM VM { get; set; }
    3839    protected TextBox TBValue { get; set; }
    3940    protected NumericRangeControl NumericRangeControl { get; set; }
     
    4445    #endregion
    4546
    46     public JsonItemValueControl(JsonItemVMBase vm) : base(vm) {
     47    public JsonItemValueControl(JsonItemVMBase vm) {
    4748      InitializeComponent();
     49      VM = vm;
    4850      TBValue = textBoxValue;
    4951      NumericRangeControl = numericRangeControl1;
     
    5153   
    5254    protected void Init() {
    53       TBValue.DataBindings.Add("Text", base.VM, ValuePropertyId);
     55      TBValue.DataBindings.Add("Text", VM, ValuePropertyId);
    5456      NumericRangeControl.TBMinRange.DataBindings.Add("Text", VM, nameof(RangedValueBaseVM.MinRange));
    5557      NumericRangeControl.TBMaxRange.DataBindings.Add("Text", VM, nameof(RangedValueBaseVM.MaxRange));
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValueControl.resx

    r17404 r17464  
    118118    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
    119119  </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>
    120123</root>
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface/Converters/RegressionProblemDataConverter.cs

    r17451 r17464  
    1717
    1818    public override void Inject(IItem item, IJsonItem data, IJsonItemConverter root) {
    19       //Dictionary<string, IList<double>> dict = null;
    2019      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       */
    3220      DoubleNamedMatrixJsonItem matrix = data.Children[0] as DoubleNamedMatrixJsonItem;
    3321      if(matrix != null) {
     
    7462          int r = 0;
    7563          foreach(var rowValue in x.Value) {
     64            // TODO: for integers and bools aswell
    7665            mat[c][r] = (double)rowValue;
    7766            ++r;
Note: See TracChangeset for help on using the changeset viewer.