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 | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.ComponentModel;
|
---|
4 | using System.Data;
|
---|
5 | using System.Drawing;
|
---|
6 | using System.Linq;
|
---|
7 | using System.Text;
|
---|
8 | using System.Threading.Tasks;
|
---|
9 | using System.Windows.Forms;
|
---|
10 |
|
---|
11 | namespace 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.