Last change
on this file since 17404 was
17404,
checked in by dpiringe, 4 years ago
|
#3026:
- fixed a bug in BaseConverter -> the range for percent values should be returned correctly now
- fixed a bug in ConstrainedValueParameterConverter, ParameterizedItemConverter, ValueParameterConverter -> unsupported json items get filtered now
- JCGenerator is now a dynamic class and can return all JsonItems for an IOptimizer now (instead of string only) + it is now possible to generate an template string with an IEnumerable<JsonItem>
- added first version of an export dialog for JsonInterface
- it is organized with a main view (for the dialog) and some user controls (for a better visualization of an JsonItem -> to reduce wrong user inputs)
- the user controls inherit a base control, which organizes some base values of an JsonItem
|
File size:
649 bytes
|
Line | |
---|
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;
|
---|
9 | using System.Windows.Forms;
|
---|
10 |
|
---|
11 | namespace HeuristicLab.JsonInterface.OptimizerIntegration {
|
---|
12 | public partial class JsonItemBoolControl : JsonItemBaseControl {
|
---|
13 | public JsonItemBoolControl(JsonItemVM vm) : base(vm) {
|
---|
14 | InitializeComponent();
|
---|
15 | checkBoxValue.Checked = (bool)vm.Item.Value;
|
---|
16 | }
|
---|
17 |
|
---|
18 | private void checkBoxValue_CheckStateChanged(object sender, EventArgs e) {
|
---|
19 | VM.Item.Value = checkBoxValue.Checked;
|
---|
20 | }
|
---|
21 | }
|
---|
22 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.