Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/20/20 16:58:03 (5 years ago)
Author:
dpiringe
Message:

#3026:

  • made interfaces for array/matrix JsonItems and for their VMs aswell (IArrayJsonItem, IArrayJsonItemVM, IMatrixJsonItem, IMatrixJsonItemVM), incl. base classes (ArrayJsonItemBase, ArrayValueVM, MatrixJsonItemBase, MatrixValueVM)
  • changed inheritance structure for already existing array/matrix JsonItems -> they inherit now from new base array/matrix base classes
  • added input elements to configure the size of an matrix or array in JsonItemMultiValueControl (incl. VM binding and validation)
  • splitted file JsonItems.cs into separate files for their corresponding types (IntJsonItems.cs, DoubleJsonItems.cs, BoolJsonItems.cs, StringJsonItem.cs, DateTimeJsonItem.cs)
  • changed location of deserialization of json values from JsonTemplateInstantiator into IJsonItem (implemented in JsonItem and set to virtual, overridden in MatrixJsonItemBase and ArrayJsonItemBase)
  • added new CLI argument StringArgument
  • some little UI improvements (location fixes, anchor fixes, ...)
Location:
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared/JsonItemBaseControl.cs

    r17444 r17446  
    1111namespace HeuristicLab.JsonInterface.OptimizerIntegration {
    1212  public partial class JsonItemBaseControl : UserControl {
    13     protected JsonItemVMBase VM { get; set; }
     13    protected IJsonItemVM VM { get; set; }
    1414
    1515    private JsonItemBaseControl() {
     
    1717    }
    1818   
    19     public JsonItemBaseControl(JsonItemVMBase vm) {
     19    public JsonItemBaseControl(IJsonItemVM vm) {
    2020      InitializeComponent();
    2121      VM = vm;
    2222
    23       checkBoxActive.DataBindings.Add("Checked", VM, nameof(JsonItemVMBase.Selected),
     23      checkBoxActive.DataBindings.Add("Checked", VM, nameof(IJsonItemVM.Selected),
    2424        false, DataSourceUpdateMode.OnPropertyChanged);
    25       textBoxName.DataBindings.Add("Text", VM, nameof(JsonItemVMBase.Name));
    26       textBoxDescription.DataBindings.Add("Text", VM, nameof(JsonItemVMBase.Description));
    27       textBoxActualName.DataBindings.Add("Text", VM, nameof(JsonItemVMBase.ActualName));
     25      textBoxName.DataBindings.Add("Text", VM, nameof(IJsonItemVM.Name));
     26      textBoxDescription.DataBindings.Add("Text", VM, nameof(IJsonItemVM.Description));
     27      textBoxActualName.DataBindings.Add("Text", VM, nameof(IJsonItemVM.ActualName));
    2828
    2929      if (string.IsNullOrWhiteSpace(VM.Item.ActualName))
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared/NumericRangeControl.Designer.cs

    r17444 r17446  
    2626      this.components = new System.ComponentModel.Container();
    2727      this.textBoxFrom = new System.Windows.Forms.TextBox();
    28       this.label6 = new System.Windows.Forms.Label();
    2928      this.groupBox2 = new System.Windows.Forms.GroupBox();
    3029      this.checkBoxTo = new System.Windows.Forms.CheckBox();
    3130      this.textBoxTo = new System.Windows.Forms.TextBox();
    32       this.label1 = new System.Windows.Forms.Label();
    3331      this.checkBoxFrom = new System.Windows.Forms.CheckBox();
    3432      this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components);
     
    4947      this.textBoxFrom.Validating += new System.ComponentModel.CancelEventHandler(this.textBoxFrom_Validating);
    5048      //
    51       // label6
    52       //
    53       this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    54             | System.Windows.Forms.AnchorStyles.Right)));
    55       this.label6.AutoSize = true;
    56       this.label6.Location = new System.Drawing.Point(31, 21);
    57       this.label6.Name = "label6";
    58       this.label6.Size = new System.Drawing.Size(30, 13);
    59       this.label6.TabIndex = 0;
    60       this.label6.Text = "From";
    61       //
    6249      // groupBox2
    6350      //
    6451      this.groupBox2.Controls.Add(this.checkBoxTo);
    6552      this.groupBox2.Controls.Add(this.textBoxTo);
    66       this.groupBox2.Controls.Add(this.label1);
    6753      this.groupBox2.Controls.Add(this.checkBoxFrom);
    6854      this.groupBox2.Controls.Add(this.textBoxFrom);
    69       this.groupBox2.Controls.Add(this.label6);
    7055      this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill;
    7156      this.groupBox2.Location = new System.Drawing.Point(0, 0);
     
    7964      //
    8065      this.checkBoxTo.AutoSize = true;
    81       this.checkBoxTo.Location = new System.Drawing.Point(10, 46);
     66      this.checkBoxTo.Location = new System.Drawing.Point(9, 45);
    8267      this.checkBoxTo.Name = "checkBoxTo";
    83       this.checkBoxTo.Size = new System.Drawing.Size(15, 14);
     68      this.checkBoxTo.Size = new System.Drawing.Size(42, 17);
    8469      this.checkBoxTo.TabIndex = 7;
     70      this.checkBoxTo.Text = "To:";
    8571      this.checkBoxTo.UseVisualStyleBackColor = true;
    8672      //
     
    9783      this.textBoxTo.Validating += new System.ComponentModel.CancelEventHandler(this.textBoxTo_Validating);
    9884      //
    99       // label1
    100       //
    101       this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    102             | System.Windows.Forms.AnchorStyles.Right)));
    103       this.label1.AutoSize = true;
    104       this.label1.Location = new System.Drawing.Point(31, 46);
    105       this.label1.Name = "label1";
    106       this.label1.Size = new System.Drawing.Size(20, 13);
    107       this.label1.TabIndex = 5;
    108       this.label1.Text = "To";
    109       //
    11085      // checkBoxFrom
    11186      //
    11287      this.checkBoxFrom.AutoSize = true;
    113       this.checkBoxFrom.Location = new System.Drawing.Point(10, 20);
     88      this.checkBoxFrom.Location = new System.Drawing.Point(9, 19);
    11489      this.checkBoxFrom.Name = "checkBoxFrom";
    115       this.checkBoxFrom.Size = new System.Drawing.Size(15, 14);
     90      this.checkBoxFrom.Size = new System.Drawing.Size(52, 17);
    11691      this.checkBoxFrom.TabIndex = 4;
     92      this.checkBoxFrom.Text = "From:";
    11793      this.checkBoxFrom.UseVisualStyleBackColor = true;
    11894      //
     
    138114    #endregion
    139115    private System.Windows.Forms.TextBox textBoxFrom;
    140     private System.Windows.Forms.Label label6;
    141116    private System.Windows.Forms.GroupBox groupBox2;
    142117    private System.Windows.Forms.CheckBox checkBoxTo;
    143118    private System.Windows.Forms.TextBox textBoxTo;
    144     private System.Windows.Forms.Label label1;
    145119    private System.Windows.Forms.CheckBox checkBoxFrom;
    146120    private System.Windows.Forms.ErrorProvider errorProvider;
Note: See TracChangeset for help on using the changeset viewer.