Changeset 17433 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration
- Timestamp:
- 02/10/20 17:29:35 (5 years ago)
- 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 30 30 this.textBoxName = new System.Windows.Forms.TextBox(); 31 31 this.label1 = new System.Windows.Forms.Label(); 32 this.labelDescription = new System.Windows.Forms.Label(); 33 this.textBoxDescription = new System.Windows.Forms.TextBox(); 32 34 this.SuspendLayout(); 33 35 // … … 56 58 this.textBoxActualName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 57 59 | 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); 59 61 this.textBoxActualName.Name = "textBoxActualName"; 60 62 this.textBoxActualName.Size = new System.Drawing.Size(404, 20); … … 64 66 // 65 67 this.labelActualName.AutoSize = true; 66 this.labelActualName.Location = new System.Drawing.Point(6, 52);68 this.labelActualName.Location = new System.Drawing.Point(6, 78); 67 69 this.labelActualName.Name = "labelActualName"; 68 70 this.labelActualName.Size = new System.Drawing.Size(65, 13); … … 91 93 this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; 92 94 // 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 // 93 113 // JsonItemBaseControl 94 114 // 95 115 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 96 116 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 117 this.Controls.Add(this.textBoxDescription); 118 this.Controls.Add(this.labelDescription); 97 119 this.Controls.Add(this.labelEnable); 98 120 this.Controls.Add(this.checkBoxActive); … … 117 139 private System.Windows.Forms.TextBox textBoxName; 118 140 private System.Windows.Forms.Label label1; 141 private System.Windows.Forms.Label labelDescription; 142 private System.Windows.Forms.TextBox textBoxDescription; 119 143 } 120 144 } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared/JsonItemBaseControl.cs
r17431 r17433 24 24 false, DataSourceUpdateMode.OnPropertyChanged); 25 25 textBoxName.DataBindings.Add("Text", VM, nameof(JsonItemVMBase.Name)); 26 textBoxDescription.DataBindings.Add("Text", VM, nameof(JsonItemVMBase.Description)); 26 27 textBoxActualName.DataBindings.Add("Text", VM, nameof(JsonItemVMBase.ActualName)); 27 28 28 //checkBoxActive.Checked = VM.Selected;29 //textBoxName.Text = VM.Item.Name;30 29 if (string.IsNullOrWhiteSpace(VM.Item.ActualName)) 31 30 textBoxActualName.ReadOnly = true; -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/ArrayValueVM.cs
r17431 r17433 15 15 protected override double MaxTypeValue => double.MaxValue; 16 16 17 public override JsonItemBaseControl GetControl() => new JsonItemDoubleArrayValueControl(this); 17 public override JsonItemBaseControl GetControl() => 18 new JsonItemDoubleArrayValueControl(this); 18 19 19 20 public override double[] Value { … … 33 34 protected override int MaxTypeValue => int.MaxValue; 34 35 35 public override JsonItemBaseControl GetControl() => new JsonItemIntArrayValueControl(this); 36 public override JsonItemBaseControl GetControl() => 37 new JsonItemIntArrayValueControl(this); 36 38 37 39 public override int[] Value { … … 46 48 public abstract class ArrayValueVM<T> : RangedValueBaseVM<T> { 47 49 48 public ArrayValueVM() { 49 //base.ItemChanged += OnItemChanged; 50 } 50 public ArrayValueVM() { } 51 51 52 52 public void SetIndexValue(object obj, int index) { -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/JsonItemVMBase.cs
r17431 r17433 58 58 } 59 59 60 public string Description { 61 get => Item.Description; 62 set { 63 Item.Description = value; 64 OnPropertyChange(this, nameof(Description)); 65 } 66 } 67 60 68 public string ActualName { 61 69 get => Item.ActualName; -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/MatrixValueVM.cs
r17431 r17433 10 10 public class DoubleMatrixValueVM : MatrixValueVM<double> { 11 11 public override Type JsonItemType => typeof(DoubleMatrixJsonItem); 12 public override JsonItemBaseControl GetControl() => new JsonItemDoubleMatrixValueControl(this); 12 public override JsonItemBaseControl GetControl() => 13 new JsonItemDoubleMatrixValueControl(this); 13 14 14 15 public override double[][] Value { -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/SingleValueVM.cs
r17420 r17433 14 14 protected override int MaxTypeValue => int.MaxValue; 15 15 16 public override JsonItemBaseControl GetControl() => 16 public override JsonItemBaseControl GetControl() => 17 17 new JsonItemIntValueControl(this); 18 18 } … … 24 24 protected override double MaxTypeValue => double.MaxValue; 25 25 26 public override JsonItemBaseControl GetControl() => 26 public override JsonItemBaseControl GetControl() => 27 27 new JsonItemDoubleValueControl(this); 28 28 } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemBoolControl.Designer.cs
r17410 r17433 33 33 | System.Windows.Forms.AnchorStyles.Right))); 34 34 this.checkBoxValue.AutoSize = true; 35 this.checkBoxValue.Location = new System.Drawing.Point(92, 75);35 this.checkBoxValue.Location = new System.Drawing.Point(92, 101); 36 36 this.checkBoxValue.Name = "checkBoxValue"; 37 37 this.checkBoxValue.Size = new System.Drawing.Size(15, 14); … … 42 42 // 43 43 this.label2.AutoSize = true; 44 this.label2.Location = new System.Drawing.Point(6, 75);44 this.label2.Location = new System.Drawing.Point(6, 101); 45 45 this.label2.Name = "label2"; 46 46 this.label2.Size = new System.Drawing.Size(34, 13); … … 56 56 this.Controls.Add(this.checkBoxValue); 57 57 this.Name = "JsonItemBoolControl"; 58 this.Size = new System.Drawing.Size(500, 1 05);58 this.Size = new System.Drawing.Size(500, 140); 59 59 this.Controls.SetChildIndex(this.checkBoxValue, 0); 60 60 this.Controls.SetChildIndex(this.label2, 0); -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemMultiValueControl.Designer.cs
r17431 r17433 35 35 | System.Windows.Forms.AnchorStyles.Right))); 36 36 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); 38 38 this.dataGridView.Name = "dataGridView"; 39 this.dataGridView.Size = new System.Drawing.Size(487, 171);39 this.dataGridView.Size = new System.Drawing.Size(487, 208); 40 40 this.dataGridView.TabIndex = 13; 41 41 // … … 44 44 this.numericRangeControl1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) 45 45 | 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); 47 47 this.numericRangeControl1.Name = "numericRangeControl1"; 48 48 this.numericRangeControl1.Size = new System.Drawing.Size(487, 128); 49 49 this.numericRangeControl1.TabIndex = 14; 50 50 // 51 // JsonItem ArrayValueControl51 // JsonItemMultiValueControl 52 52 // 53 53 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); … … 55 55 this.Controls.Add(this.numericRangeControl1); 56 56 this.Controls.Add(this.dataGridView); 57 this.Name = "JsonItem ArrayValueControl";58 this.Size = new System.Drawing.Size(502, 386);57 this.Name = "JsonItemMultiValueControl"; 58 this.Size = new System.Drawing.Size(502, 449); 59 59 this.Controls.SetChildIndex(this.dataGridView, 0); 60 60 this.Controls.SetChildIndex(this.numericRangeControl1, 0); -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemMultiValueControl.cs
r17431 r17433 10 10 11 11 namespace HeuristicLab.JsonInterface.OptimizerIntegration { 12 12 13 13 public class JsonItemDoubleMatrixValueControl : JsonItemMultiValueControl<double> { 14 14 … … 81 81 protected abstract void SaveCellData(object data, int col, int row); 82 82 83 /*84 public JsonItemMultiValueControl(JsonItemVMBase vm, object dataSource) : base(vm) {85 InitializeComponent();86 dataGridView.DataSource = dataSource;87 88 InitRangeBinding();89 }90 */91 83 private void InitRangeBinding() { 92 84 NumericRangeControl = numericRangeControl1; -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemRangeControl.Designer.cs
r17432 r17433 41 41 this.groupBox1.Controls.Add(this.label4); 42 42 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); 44 44 this.groupBox1.Name = "groupBox1"; 45 45 this.groupBox1.Size = new System.Drawing.Size(487, 64); … … 90 90 this.numericRangeControl1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 91 91 | System.Windows.Forms.AnchorStyles.Right))); 92 this.numericRangeControl1.Location = new System.Drawing.Point(9, 1 45);92 this.numericRangeControl1.Location = new System.Drawing.Point(9, 171); 93 93 this.numericRangeControl1.Name = "numericRangeControl1"; 94 94 this.numericRangeControl1.Size = new System.Drawing.Size(487, 112); … … 102 102 this.Controls.Add(this.groupBox1); 103 103 this.Name = "JsonItemRangeControl"; 104 this.Size = new System.Drawing.Size(500, 262);104 this.Size = new System.Drawing.Size(500, 301); 105 105 this.Controls.SetChildIndex(this.groupBox1, 0); 106 106 this.Controls.SetChildIndex(this.numericRangeControl1, 0); -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValidValuesControl.Designer.cs
r17417 r17433 44 44 this.tableOptions.RowCount = 1; 45 45 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); 47 47 this.tableOptions.TabIndex = 12; 48 48 // … … 54 54 this.groupBoxRange.AutoSize = true; 55 55 this.groupBoxRange.Controls.Add(this.tableOptions); 56 this.groupBoxRange.Location = new System.Drawing.Point(6, 1 08);56 this.groupBoxRange.Location = new System.Drawing.Point(6, 128); 57 57 this.groupBoxRange.Name = "groupBoxRange"; 58 this.groupBoxRange.Size = new System.Drawing.Size(490, 162);58 this.groupBoxRange.Size = new System.Drawing.Size(490, 442); 59 59 this.groupBoxRange.TabIndex = 14; 60 60 this.groupBoxRange.TabStop = false; … … 67 67 this.comboBoxValues.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 68 68 this.comboBoxValues.FormattingEnabled = true; 69 this.comboBoxValues.Location = new System.Drawing.Point(92, 75);69 this.comboBoxValues.Location = new System.Drawing.Point(92, 101); 70 70 this.comboBoxValues.Name = "comboBoxValues"; 71 71 this.comboBoxValues.Size = new System.Drawing.Size(404, 21); … … 75 75 // 76 76 this.label2.AutoSize = true; 77 this.label2.Location = new System.Drawing.Point(6, 78);77 this.label2.Location = new System.Drawing.Point(6, 104); 78 78 this.label2.Name = "label2"; 79 79 this.label2.Size = new System.Drawing.Size(34, 13); … … 91 91 this.ForeColor = System.Drawing.Color.Black; 92 92 this.Name = "JsonItemValidValuesControl"; 93 this.Size = new System.Drawing.Size(500, 276);93 this.Size = new System.Drawing.Size(500, 576); 94 94 this.Controls.SetChildIndex(this.groupBoxRange, 0); 95 95 this.Controls.SetChildIndex(this.comboBoxValues, 0); -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValueControl.Designer.cs
r17432 r17433 33 33 this.textBoxValue.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 34 34 | 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); 36 36 this.textBoxValue.Name = "textBoxValue"; 37 37 this.textBoxValue.Size = new System.Drawing.Size(404, 20); … … 41 41 // 42 42 this.label2.AutoSize = true; 43 this.label2.Location = new System.Drawing.Point(6, 78);43 this.label2.Location = new System.Drawing.Point(6, 104); 44 44 this.label2.Name = "label2"; 45 45 this.label2.Size = new System.Drawing.Size(34, 13); … … 49 49 // numericRangeControl1 50 50 // 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); 53 54 this.numericRangeControl1.Name = "numericRangeControl1"; 54 55 this.numericRangeControl1.Size = new System.Drawing.Size(487, 112); … … 63 64 this.Controls.Add(this.textBoxValue); 64 65 this.Name = "JsonItemValueControl"; 65 this.Size = new System.Drawing.Size(500, 2 20);66 this.Size = new System.Drawing.Size(500, 247); 66 67 this.Controls.SetChildIndex(this.textBoxValue, 0); 67 68 this.Controls.SetChildIndex(this.label2, 0); -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValueControl.cs
r17420 r17433 11 11 12 12 namespace HeuristicLab.JsonInterface.OptimizerIntegration { 13 13 14 14 public class JsonItemIntValueControl : JsonItemValueControl { 15 15 … … 21 21 Init(); 22 22 } 23 24 23 } 25 24 … … 33 32 Init(); 34 33 } 35 36 34 } 37 35 38 36 public abstract partial class JsonItemValueControl : JsonItemBaseControl { 39 37 #region Protected Properties
Note: See TracChangeset
for help on using the changeset viewer.