Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/CompoundControl.cs @ 17843

Last change on this file since 17843 was 17843, checked in by dpiringe, 3 years ago

#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 size: 1.2 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.ComponentModel;
4using System.Data;
5using System.Drawing;
6using System.Linq;
7using System.Text;
8using System.Threading.Tasks;
9using System.Windows.Forms;
10
11namespace HeuristicLab.JsonInterface.OptimizerIntegration {
12  public partial class CompoundControl : UserControl {
13    private UserControl _topControl;
14    public UserControl TopControl {
15      get => _topControl;
16      set {
17        value.Margin = new Padding() { All = 0 };
18        tableLayoutPanel1.Controls.Add(value, 0, 0);
19        value.Dock = DockStyle.Fill;
20        _topControl = value;
21      }
22    }
23
24    private UserControl _bottomControl;
25    public UserControl BottomControl {
26      get => _bottomControl;
27      set {
28        value.Margin = new Padding() { All = 0 };
29        tableLayoutPanel1.Controls.Add(value, 0, 0);
30        value.Dock = DockStyle.Fill;
31        _bottomControl = value;
32      }
33    }
34
35    protected CompoundControl() {
36      InitializeComponent();
37    }
38
39    public static CompoundControl Create(UserControl top, UserControl bottom)
40      => new CompoundControl() { TopControl = top, BottomControl = bottom };
41  }
42}
Note: See TracBrowser for help on using the repository browser.