Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/MatrixJsonItemControl.cs @ 17829

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

#3026

  • moved JsonItems from Models to JsonItems
  • moved WinForms controls from Shared to Views
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.