Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/10/20 17:29:35 (5 years ago)
Author:
dpiringe
Message:

#3026:

  • added property Description in IJsonItem and updated all construction calls
  • updated UnsupportedJsonItem with unsupported property Description
  • updated JsonItemBaseControl and JsonItemVMBase for new property Description
Location:
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration
Files:
13 edited

Legend:

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

    r17410 r17433  
    3030      this.textBoxName = new System.Windows.Forms.TextBox();
    3131      this.label1 = new System.Windows.Forms.Label();
     32      this.labelDescription = new System.Windows.Forms.Label();
     33      this.textBoxDescription = new System.Windows.Forms.TextBox();
    3234      this.SuspendLayout();
    3335      //
     
    5658      this.textBoxActualName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    5759            | System.Windows.Forms.AnchorStyles.Right)));
    58       this.textBoxActualName.Location = new System.Drawing.Point(92, 49);
     60      this.textBoxActualName.Location = new System.Drawing.Point(92, 75);
    5961      this.textBoxActualName.Name = "textBoxActualName";
    6062      this.textBoxActualName.Size = new System.Drawing.Size(404, 20);
     
    6466      //
    6567      this.labelActualName.AutoSize = true;
    66       this.labelActualName.Location = new System.Drawing.Point(6, 52);
     68      this.labelActualName.Location = new System.Drawing.Point(6, 78);
    6769      this.labelActualName.Name = "labelActualName";
    6870      this.labelActualName.Size = new System.Drawing.Size(65, 13);
     
    9193      this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
    9294      //
     95      // labelDescription
     96      //
     97      this.labelDescription.AutoSize = true;
     98      this.labelDescription.Location = new System.Drawing.Point(6, 52);
     99      this.labelDescription.Name = "labelDescription";
     100      this.labelDescription.Size = new System.Drawing.Size(60, 13);
     101      this.labelDescription.TabIndex = 13;
     102      this.labelDescription.Text = "Description";
     103      //
     104      // textBoxDescription
     105      //
     106      this.textBoxDescription.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     107            | System.Windows.Forms.AnchorStyles.Right)));
     108      this.textBoxDescription.Location = new System.Drawing.Point(92, 49);
     109      this.textBoxDescription.Name = "textBoxDescription";
     110      this.textBoxDescription.Size = new System.Drawing.Size(404, 20);
     111      this.textBoxDescription.TabIndex = 14;
     112      //
    93113      // JsonItemBaseControl
    94114      //
    95115      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    96116      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     117      this.Controls.Add(this.textBoxDescription);
     118      this.Controls.Add(this.labelDescription);
    97119      this.Controls.Add(this.labelEnable);
    98120      this.Controls.Add(this.checkBoxActive);
     
    117139    private System.Windows.Forms.TextBox textBoxName;
    118140    private System.Windows.Forms.Label label1;
     141    private System.Windows.Forms.Label labelDescription;
     142    private System.Windows.Forms.TextBox textBoxDescription;
    119143  }
    120144}
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared/JsonItemBaseControl.cs

    r17431 r17433  
    2424        false, DataSourceUpdateMode.OnPropertyChanged);
    2525      textBoxName.DataBindings.Add("Text", VM, nameof(JsonItemVMBase.Name));
     26      textBoxDescription.DataBindings.Add("Text", VM, nameof(JsonItemVMBase.Description));
    2627      textBoxActualName.DataBindings.Add("Text", VM, nameof(JsonItemVMBase.ActualName));
    2728
    28       //checkBoxActive.Checked = VM.Selected;
    29       //textBoxName.Text = VM.Item.Name;
    3029      if (string.IsNullOrWhiteSpace(VM.Item.ActualName))
    3130        textBoxActualName.ReadOnly = true;
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/ArrayValueVM.cs

    r17431 r17433  
    1515    protected override double MaxTypeValue => double.MaxValue;
    1616
    17     public override JsonItemBaseControl GetControl() => new JsonItemDoubleArrayValueControl(this);
     17    public override JsonItemBaseControl GetControl() =>
     18      new JsonItemDoubleArrayValueControl(this);
    1819   
    1920    public override double[] Value {
     
    3334    protected override int MaxTypeValue => int.MaxValue;
    3435
    35     public override JsonItemBaseControl GetControl() => new JsonItemIntArrayValueControl(this);
     36    public override JsonItemBaseControl GetControl() =>
     37      new JsonItemIntArrayValueControl(this);
    3638   
    3739    public override int[] Value {
     
    4648  public abstract class ArrayValueVM<T> : RangedValueBaseVM<T> {
    4749   
    48     public ArrayValueVM() {
    49       //base.ItemChanged += OnItemChanged;
    50     }
     50    public ArrayValueVM() { }
    5151
    5252    public void SetIndexValue(object obj, int index) {
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/JsonItemVMBase.cs

    r17431 r17433  
    5858    }
    5959
     60    public string Description {
     61      get => Item.Description;
     62      set {
     63        Item.Description = value;
     64        OnPropertyChange(this, nameof(Description));
     65      }
     66    }
     67
    6068    public string ActualName {
    6169      get => Item.ActualName;
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/MatrixValueVM.cs

    r17431 r17433  
    1010  public class DoubleMatrixValueVM : MatrixValueVM<double> {
    1111    public override Type JsonItemType => typeof(DoubleMatrixJsonItem);
    12     public override JsonItemBaseControl GetControl() => new JsonItemDoubleMatrixValueControl(this);
     12    public override JsonItemBaseControl GetControl() =>
     13      new JsonItemDoubleMatrixValueControl(this);
    1314
    1415    public override double[][] Value {
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/SingleValueVM.cs

    r17420 r17433  
    1414    protected override int MaxTypeValue => int.MaxValue;
    1515
    16     public override JsonItemBaseControl GetControl() =>
     16    public override JsonItemBaseControl GetControl() => 
    1717      new JsonItemIntValueControl(this);
    1818  }
     
    2424    protected override double MaxTypeValue => double.MaxValue;
    2525
    26     public override JsonItemBaseControl GetControl() =>
     26    public override JsonItemBaseControl GetControl() => 
    2727       new JsonItemDoubleValueControl(this);
    2828  }
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemBoolControl.Designer.cs

    r17410 r17433  
    3333            | System.Windows.Forms.AnchorStyles.Right)));
    3434      this.checkBoxValue.AutoSize = true;
    35       this.checkBoxValue.Location = new System.Drawing.Point(92, 75);
     35      this.checkBoxValue.Location = new System.Drawing.Point(92, 101);
    3636      this.checkBoxValue.Name = "checkBoxValue";
    3737      this.checkBoxValue.Size = new System.Drawing.Size(15, 14);
     
    4242      //
    4343      this.label2.AutoSize = true;
    44       this.label2.Location = new System.Drawing.Point(6, 75);
     44      this.label2.Location = new System.Drawing.Point(6, 101);
    4545      this.label2.Name = "label2";
    4646      this.label2.Size = new System.Drawing.Size(34, 13);
     
    5656      this.Controls.Add(this.checkBoxValue);
    5757      this.Name = "JsonItemBoolControl";
    58       this.Size = new System.Drawing.Size(500, 105);
     58      this.Size = new System.Drawing.Size(500, 140);
    5959      this.Controls.SetChildIndex(this.checkBoxValue, 0);
    6060      this.Controls.SetChildIndex(this.label2, 0);
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemMultiValueControl.Designer.cs

    r17431 r17433  
    3535            | System.Windows.Forms.AnchorStyles.Right)));
    3636      this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
    37       this.dataGridView.Location = new System.Drawing.Point(9, 75);
     37      this.dataGridView.Location = new System.Drawing.Point(9, 101);
    3838      this.dataGridView.Name = "dataGridView";
    39       this.dataGridView.Size = new System.Drawing.Size(487, 171);
     39      this.dataGridView.Size = new System.Drawing.Size(487, 208);
    4040      this.dataGridView.TabIndex = 13;
    4141      //
     
    4444      this.numericRangeControl1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
    4545            | System.Windows.Forms.AnchorStyles.Right)));
    46       this.numericRangeControl1.Location = new System.Drawing.Point(9, 252);
     46      this.numericRangeControl1.Location = new System.Drawing.Point(9, 315);
    4747      this.numericRangeControl1.Name = "numericRangeControl1";
    4848      this.numericRangeControl1.Size = new System.Drawing.Size(487, 128);
    4949      this.numericRangeControl1.TabIndex = 14;
    5050      //
    51       // JsonItemArrayValueControl
     51      // JsonItemMultiValueControl
    5252      //
    5353      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     
    5555      this.Controls.Add(this.numericRangeControl1);
    5656      this.Controls.Add(this.dataGridView);
    57       this.Name = "JsonItemArrayValueControl";
    58       this.Size = new System.Drawing.Size(502, 386);
     57      this.Name = "JsonItemMultiValueControl";
     58      this.Size = new System.Drawing.Size(502, 449);
    5959      this.Controls.SetChildIndex(this.dataGridView, 0);
    6060      this.Controls.SetChildIndex(this.numericRangeControl1, 0);
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemMultiValueControl.cs

    r17431 r17433  
    1010
    1111namespace HeuristicLab.JsonInterface.OptimizerIntegration {
    12 
     12 
    1313  public class JsonItemDoubleMatrixValueControl : JsonItemMultiValueControl<double> {
    1414
     
    8181    protected abstract void SaveCellData(object data, int col, int row);
    8282
    83     /*
    84 public JsonItemMultiValueControl(JsonItemVMBase vm, object dataSource) : base(vm) {
    85  InitializeComponent();
    86  dataGridView.DataSource = dataSource;
    87 
    88  InitRangeBinding();
    89 }
    90 */
    9183    private void InitRangeBinding() {
    9284      NumericRangeControl = numericRangeControl1;
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemRangeControl.Designer.cs

    r17432 r17433  
    4141      this.groupBox1.Controls.Add(this.label4);
    4242      this.groupBox1.Controls.Add(this.label2);
    43       this.groupBox1.Location = new System.Drawing.Point(9, 75);
     43      this.groupBox1.Location = new System.Drawing.Point(9, 101);
    4444      this.groupBox1.Name = "groupBox1";
    4545      this.groupBox1.Size = new System.Drawing.Size(487, 64);
     
    9090      this.numericRangeControl1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    9191            | System.Windows.Forms.AnchorStyles.Right)));
    92       this.numericRangeControl1.Location = new System.Drawing.Point(9, 145);
     92      this.numericRangeControl1.Location = new System.Drawing.Point(9, 171);
    9393      this.numericRangeControl1.Name = "numericRangeControl1";
    9494      this.numericRangeControl1.Size = new System.Drawing.Size(487, 112);
     
    102102      this.Controls.Add(this.groupBox1);
    103103      this.Name = "JsonItemRangeControl";
    104       this.Size = new System.Drawing.Size(500, 262);
     104      this.Size = new System.Drawing.Size(500, 301);
    105105      this.Controls.SetChildIndex(this.groupBox1, 0);
    106106      this.Controls.SetChildIndex(this.numericRangeControl1, 0);
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValidValuesControl.Designer.cs

    r17417 r17433  
    4444      this.tableOptions.RowCount = 1;
    4545      this.tableOptions.RowStyles.Add(new System.Windows.Forms.RowStyle());
    46       this.tableOptions.Size = new System.Drawing.Size(478, 137);
     46      this.tableOptions.Size = new System.Drawing.Size(478, 417);
    4747      this.tableOptions.TabIndex = 12;
    4848      //
     
    5454      this.groupBoxRange.AutoSize = true;
    5555      this.groupBoxRange.Controls.Add(this.tableOptions);
    56       this.groupBoxRange.Location = new System.Drawing.Point(6, 108);
     56      this.groupBoxRange.Location = new System.Drawing.Point(6, 128);
    5757      this.groupBoxRange.Name = "groupBoxRange";
    58       this.groupBoxRange.Size = new System.Drawing.Size(490, 162);
     58      this.groupBoxRange.Size = new System.Drawing.Size(490, 442);
    5959      this.groupBoxRange.TabIndex = 14;
    6060      this.groupBoxRange.TabStop = false;
     
    6767      this.comboBoxValues.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
    6868      this.comboBoxValues.FormattingEnabled = true;
    69       this.comboBoxValues.Location = new System.Drawing.Point(92, 75);
     69      this.comboBoxValues.Location = new System.Drawing.Point(92, 101);
    7070      this.comboBoxValues.Name = "comboBoxValues";
    7171      this.comboBoxValues.Size = new System.Drawing.Size(404, 21);
     
    7575      //
    7676      this.label2.AutoSize = true;
    77       this.label2.Location = new System.Drawing.Point(6, 78);
     77      this.label2.Location = new System.Drawing.Point(6, 104);
    7878      this.label2.Name = "label2";
    7979      this.label2.Size = new System.Drawing.Size(34, 13);
     
    9191      this.ForeColor = System.Drawing.Color.Black;
    9292      this.Name = "JsonItemValidValuesControl";
    93       this.Size = new System.Drawing.Size(500, 276);
     93      this.Size = new System.Drawing.Size(500, 576);
    9494      this.Controls.SetChildIndex(this.groupBoxRange, 0);
    9595      this.Controls.SetChildIndex(this.comboBoxValues, 0);
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValueControl.Designer.cs

    r17432 r17433  
    3333      this.textBoxValue.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    3434            | System.Windows.Forms.AnchorStyles.Right)));
    35       this.textBoxValue.Location = new System.Drawing.Point(92, 75);
     35      this.textBoxValue.Location = new System.Drawing.Point(92, 101);
    3636      this.textBoxValue.Name = "textBoxValue";
    3737      this.textBoxValue.Size = new System.Drawing.Size(404, 20);
     
    4141      //
    4242      this.label2.AutoSize = true;
    43       this.label2.Location = new System.Drawing.Point(6, 78);
     43      this.label2.Location = new System.Drawing.Point(6, 104);
    4444      this.label2.Name = "label2";
    4545      this.label2.Size = new System.Drawing.Size(34, 13);
     
    4949      // numericRangeControl1
    5050      //
    51       this.numericRangeControl1.Location = new System.Drawing.Point(9, 101);
    52       this.numericRangeControl1.Anchor = System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right;
     51      this.numericRangeControl1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     52            | System.Windows.Forms.AnchorStyles.Right)));
     53      this.numericRangeControl1.Location = new System.Drawing.Point(9, 127);
    5354      this.numericRangeControl1.Name = "numericRangeControl1";
    5455      this.numericRangeControl1.Size = new System.Drawing.Size(487, 112);
     
    6364      this.Controls.Add(this.textBoxValue);
    6465      this.Name = "JsonItemValueControl";
    65       this.Size = new System.Drawing.Size(500, 220);
     66      this.Size = new System.Drawing.Size(500, 247);
    6667      this.Controls.SetChildIndex(this.textBoxValue, 0);
    6768      this.Controls.SetChildIndex(this.label2, 0);
  • branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValueControl.cs

    r17420 r17433  
    1111
    1212namespace HeuristicLab.JsonInterface.OptimizerIntegration {
    13 
     13 
    1414  public class JsonItemIntValueControl : JsonItemValueControl {
    1515
     
    2121      Init();
    2222    }
    23 
    2423  }
    2524
     
    3332      Init();
    3433    }
    35 
    3634  }
    37 
     35 
    3836  public abstract partial class JsonItemValueControl : JsonItemBaseControl {
    3937    #region Protected Properties
Note: See TracChangeset for help on using the changeset viewer.