Ignore:
Timestamp:
02/23/21 16:36:44 (8 weeks ago)
Author:
dpiringe
Message:

#3026

  • removed property ConvertableType from all converters
  • removed the option to fixate or loosen the path of JsonItems (obsolete)
  • added a abstract formatter SymbolicRegressionSolutionFormatterBase as base formatter for ISymbolicRegressionSolution
  • unified the construction of exporter controls
  • code cleanup
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemBaseControl.cs

    r17829 r17843  
    1 using System;
    2 using System.Collections.Generic;
    3 using System.ComponentModel;
    4 using System.Drawing;
    5 using System.Data;
    6 using System.Linq;
    7 using System.Text;
    8 using System.Threading.Tasks;
     1using System.ComponentModel;
    92using System.Windows.Forms;
    103
     
    169      InitializeComponent();
    1710    }
    18    
    19     public JsonItemBaseControl(IJsonItemVM vm) {
     11
     12    protected JsonItemBaseControl(IJsonItemVM vm, UserControl control) {
    2013      InitializeComponent();
    2114      VM = vm;
    22       Init();
    23     }
    24 
    25     public JsonItemBaseControl(IJsonItemVM vm, UserControl control) {
    26       InitializeComponent();
    27       VM = vm;
    28       if(control != null) {
     15      if (control != null) {
    2916        control.Margin = new Padding() { All = 0 };
    3017        tableLayoutPanel1.Controls.Add(control, 0, 1);
    3118        control.Dock = DockStyle.Fill;
    3219      }
    33       Init();
    34     }
    35 
    36     private void Init() {
    3720      textBoxName.DataBindings.Add("Text", VM, nameof(IJsonItemVM.Name));
    3821      textBoxDescription.DataBindings.Add("Text", VM, nameof(IJsonItemVM.Description));
     
    4730      }
    4831    }
     32
     33    public static JsonItemBaseControl Create(IJsonItemVM vm, UserControl control) => new JsonItemBaseControl(vm, control);
    4934  }
    5035}
Note: See TracChangeset for help on using the changeset viewer.