Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared/MatrixJsonItemControl.cs @ 17828

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

#3026

  • removed the option to set the value for JsonItems via exporter
    • reworked some base controls
    • added new controls for JsonItem specific properties (e.g. ArrayResizable)
    • deleted a lot of obsolet controls
  • removed the Enable checkbox in the detail view of JsonItems
  • exporter now clones the IOptimizer object
  • added a check + message for unsupported exports
  • list of JsonItems now includes unsupported JsonItems (disabled and marked with 'unsupported')
  • refactored the converter type check
    • now every converter has to specify its supported type(s)
File size: 617 bytes
Line 
1using System.Windows.Forms;
2
3namespace HeuristicLab.JsonInterface.OptimizerIntegration {
4  public partial class MatrixJsonItemControl : UserControl {
5    public MatrixJsonItemControl() {
6      InitializeComponent();
7    }
8
9    public static MatrixJsonItemControl Create(IJsonItemVM vm) {
10      var control = new MatrixJsonItemControl();
11      control.checkBoxRowsResizable.DataBindings.Add("Checked", vm, nameof(IMatrixJsonItemVM.RowsResizable));
12      control.checkBoxColumnsResizable .DataBindings.Add("Checked", vm, nameof(IMatrixJsonItemVM.ColumnsResizable));
13      return control;
14    }
15  }
16}
Note: See TracBrowser for help on using the repository browser.