Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemBoolControl.cs @ 17404

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