Changeset 17464 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views
- Timestamp:
- 03/02/20 15:53:52 (5 years ago)
- Location:
- branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemBoolControl.Designer.cs
r17446 r17464 26 26 this.checkBoxValue = new System.Windows.Forms.CheckBox(); 27 27 this.label2 = new System.Windows.Forms.Label(); 28 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();29 28 this.SuspendLayout(); 30 29 // … … 34 33 | System.Windows.Forms.AnchorStyles.Right))); 35 34 this.checkBoxValue.AutoSize = true; 36 this.checkBoxValue.Location = new System.Drawing.Point( 92, 101);35 this.checkBoxValue.Location = new System.Drawing.Point(89, 1); 37 36 this.checkBoxValue.Name = "checkBoxValue"; 38 37 this.checkBoxValue.Size = new System.Drawing.Size(15, 14); … … 43 42 // 44 43 this.label2.AutoSize = true; 45 this.label2.Location = new System.Drawing.Point( 6, 102);44 this.label2.Location = new System.Drawing.Point(3, 1); 46 45 this.label2.Name = "label2"; 47 46 this.label2.Size = new System.Drawing.Size(34, 13); … … 53 52 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 54 53 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 54 this.Controls.Add(this.checkBoxValue); 55 55 this.Controls.Add(this.label2); 56 this.Controls.Add(this.checkBoxValue);57 this.errorProvider.SetIconAlignment(this, System.Windows.Forms.ErrorIconAlignment.MiddleLeft);58 56 this.Name = "JsonItemBoolControl"; 59 this.Size = new System.Drawing.Size(500, 121); 60 this.Controls.SetChildIndex(this.checkBoxValue, 0); 61 this.Controls.SetChildIndex(this.label2, 0); 62 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 57 this.Size = new System.Drawing.Size(500, 15); 63 58 this.ResumeLayout(false); 64 59 this.PerformLayout(); -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemBoolControl.cs
r17412 r17464 10 10 11 11 namespace HeuristicLab.JsonInterface.OptimizerIntegration { 12 public partial class JsonItemBoolControl : JsonItemBaseControl { 13 private BoolValueVM VM { get; set; } 14 15 public JsonItemBoolControl(BoolValueVM vm) : base(vm) { 12 public partial class JsonItemBoolControl : UserControl { 13 public JsonItemBoolControl(BoolValueVM vm) { 16 14 InitializeComponent(); 17 VM = vm; 18 checkBoxValue.DataBindings.Add("Checked", VM, nameof(BoolValueVM.Value)); 15 checkBoxValue.DataBindings.Add("Checked", vm, nameof(BoolValueVM.Value)); 19 16 } 20 17 } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemBoolControl.resx
r17446 r17464 118 118 <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> 119 119 </resheader> 120 <metadata name="errorProvider.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">121 <value>17, 17</value>122 </metadata>123 120 </root> -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemMultiValueControl.Designer.cs
r17446 r17464 24 24 /// </summary> 25 25 private void InitializeComponent() { 26 this.components = new System.ComponentModel.Container(); 26 27 this.dataGridView = new System.Windows.Forms.DataGridView(); 27 28 this.numericRangeControl1 = new HeuristicLab.JsonInterface.OptimizerIntegration.NumericRangeControl(); 28 29 this.groupBox1 = new System.Windows.Forms.GroupBox(); 30 this.textBoxColumns = new System.Windows.Forms.TextBox(); 29 31 this.textBoxRows = new System.Windows.Forms.TextBox(); 30 32 this.checkBoxColumns = new System.Windows.Forms.CheckBox(); 31 33 this.checkBoxRows = new System.Windows.Forms.CheckBox(); 32 this.textBoxColumns = new System.Windows.Forms.TextBox(); 33 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 34 this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components); 34 35 ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit(); 35 36 this.groupBox1.SuspendLayout(); 37 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 36 38 this.SuspendLayout(); 37 39 // … … 46 48 | System.Windows.Forms.AnchorStyles.Right))); 47 49 this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; 48 this.dataGridView.Location = new System.Drawing.Point( 6, 67);50 this.dataGridView.Location = new System.Drawing.Point(9, 70); 49 51 this.dataGridView.Name = "dataGridView"; 50 this.dataGridView.Size = new System.Drawing.Size(4 73, 192);52 this.dataGridView.Size = new System.Drawing.Size(487, 143); 51 53 this.dataGridView.TabIndex = 13; 52 54 // … … 55 57 this.numericRangeControl1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) 56 58 | System.Windows.Forms.AnchorStyles.Right))); 57 this.numericRangeControl1.Location = new System.Drawing.Point( 9, 372);59 this.numericRangeControl1.Location = new System.Drawing.Point(0, 225); 58 60 this.numericRangeControl1.Name = "numericRangeControl1"; 59 this.numericRangeControl1.Size = new System.Drawing.Size( 487, 71);61 this.numericRangeControl1.Size = new System.Drawing.Size(502, 71); 60 62 this.numericRangeControl1.TabIndex = 14; 61 63 // 62 64 // groupBox1 63 65 // 66 this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 67 | System.Windows.Forms.AnchorStyles.Left) 68 | System.Windows.Forms.AnchorStyles.Right))); 64 69 this.groupBox1.Controls.Add(this.textBoxColumns); 65 70 this.groupBox1.Controls.Add(this.textBoxRows); … … 67 72 this.groupBox1.Controls.Add(this.checkBoxRows); 68 73 this.groupBox1.Controls.Add(this.dataGridView); 69 this.groupBox1.Location = new System.Drawing.Point(9, 101); 74 this.groupBox1.Location = new System.Drawing.Point(0, 0); 75 this.groupBox1.Margin = new System.Windows.Forms.Padding(0); 70 76 this.groupBox1.Name = "groupBox1"; 71 this.groupBox1.Size = new System.Drawing.Size( 485, 265);77 this.groupBox1.Size = new System.Drawing.Size(502, 222); 72 78 this.groupBox1.TabIndex = 15; 73 79 this.groupBox1.TabStop = false; 74 80 this.groupBox1.Text = "Value"; 75 this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 76 | System.Windows.Forms.AnchorStyles.Left) 81 // 82 // textBoxColumns 83 // 84 this.textBoxColumns.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 77 85 | System.Windows.Forms.AnchorStyles.Right))); 86 this.errorProvider.SetIconAlignment(this.textBoxRows, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 87 this.textBoxColumns.Location = new System.Drawing.Point(86, 46); 88 this.textBoxColumns.Name = "textBoxColumns"; 89 this.textBoxColumns.ReadOnly = true; 90 this.textBoxColumns.Size = new System.Drawing.Size(410, 20); 91 this.textBoxColumns.TabIndex = 17; 92 this.textBoxColumns.TextChanged += new System.EventHandler(this.textBoxColumns_TextChanged); 93 this.textBoxColumns.Validating += new System.ComponentModel.CancelEventHandler(this.textBoxColumns_Validating); 78 94 // 79 95 // textBoxRows 80 96 // 81 97 this.textBoxRows.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 82 | System.Windows.Forms.AnchorStyles.Right))); 83 this.errorProvider.SetIconAlignment(this.textBox Rows, System.Windows.Forms.ErrorIconAlignment.MiddleLeft);84 this.textBoxRows.Location = new System.Drawing.Point(8 3, 17);98 | System.Windows.Forms.AnchorStyles.Right))); 99 this.errorProvider.SetIconAlignment(this.textBoxColumns, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 100 this.textBoxRows.Location = new System.Drawing.Point(86, 20); 85 101 this.textBoxRows.Name = "textBoxRows"; 86 102 this.textBoxRows.ReadOnly = true; 87 this.textBoxRows.Size = new System.Drawing.Size( 396, 20);103 this.textBoxRows.Size = new System.Drawing.Size(410, 20); 88 104 this.textBoxRows.TabIndex = 16; 89 105 this.textBoxRows.TextChanged += new System.EventHandler(this.textBoxRows_TextChanged); … … 93 109 // 94 110 this.checkBoxColumns.AutoSize = true; 95 this.checkBoxColumns.Location = new System.Drawing.Point( 7, 43);111 this.checkBoxColumns.Location = new System.Drawing.Point(10, 46); 96 112 this.checkBoxColumns.Name = "checkBoxColumns"; 97 113 this.checkBoxColumns.Size = new System.Drawing.Size(69, 17); … … 103 119 // 104 120 this.checkBoxRows.AutoSize = true; 105 this.checkBoxRows.Location = new System.Drawing.Point( 7, 20);121 this.checkBoxRows.Location = new System.Drawing.Point(10, 23); 106 122 this.checkBoxRows.Name = "checkBoxRows"; 107 123 this.checkBoxRows.Size = new System.Drawing.Size(56, 17); … … 110 126 this.checkBoxRows.UseVisualStyleBackColor = true; 111 127 // 112 // textBoxColumns128 // errorProvider 113 129 // 114 this.textBoxColumns.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 115 | System.Windows.Forms.AnchorStyles.Right))); 116 this.errorProvider.SetIconAlignment(this.textBoxColumns, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 117 this.textBoxColumns.Location = new System.Drawing.Point(83, 43); 118 this.textBoxColumns.Name = "textBoxColumns"; 119 this.textBoxColumns.ReadOnly = true; 120 this.textBoxColumns.Size = new System.Drawing.Size(396, 20); 121 this.textBoxColumns.TabIndex = 17; 122 this.textBoxColumns.TextChanged += new System.EventHandler(this.textBoxColumns_TextChanged); 123 this.textBoxColumns.Validating += new System.ComponentModel.CancelEventHandler(this.textBoxColumns_Validating); 130 this.errorProvider.ContainerControl = this; 124 131 // 125 132 // JsonItemMultiValueControl … … 131 138 this.errorProvider.SetIconAlignment(this, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 132 139 this.Name = "JsonItemMultiValueControl"; 133 this.Size = new System.Drawing.Size(502, 449); 134 this.Controls.SetChildIndex(this.numericRangeControl1, 0); 135 this.Controls.SetChildIndex(this.groupBox1, 0); 136 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 140 this.Size = new System.Drawing.Size(502, 296); 137 141 ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit(); 138 142 this.groupBox1.ResumeLayout(false); 139 143 this.groupBox1.PerformLayout(); 144 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 140 145 this.ResumeLayout(false); 141 this.PerformLayout();142 146 143 147 } … … 152 156 private System.Windows.Forms.TextBox textBoxRows; 153 157 private System.Windows.Forms.TextBox textBoxColumns; 158 private System.Windows.Forms.ErrorProvider errorProvider; 154 159 } 155 160 } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemMultiValueControl.cs
r17451 r17464 10 10 11 11 namespace HeuristicLab.JsonInterface.OptimizerIntegration { 12 12 13 13 public class JsonItemDoubleNamedMatrixValueControl : JsonItemMultiValueControl<double> { 14 14 protected override IEnumerable<string> RowNames { … … 65 65 } 66 66 67 public abstract partial class JsonItemMultiValueControl<T> : JsonItemBaseControl { 67 public abstract partial class JsonItemMultiValueControl<T> : UserControl { 68 protected IJsonItemVM VM { get; set; } 68 69 protected NumericRangeControl NumericRangeControl { get; set; } 69 70 private int _rows; … … 90 91 protected abstract IEnumerable<string> ColumnNames { get; set; } 91 92 92 public JsonItemMultiValueControl(IMatrixJsonItemVM vm, T[][] matrix) : base(vm){93 public JsonItemMultiValueControl(IMatrixJsonItemVM vm, T[][] matrix) /*: base(vm)*/ { 93 94 InitializeComponent(); 94 95 VM = vm; 95 96 checkBoxRows.DataBindings.Add("Checked", vm, nameof(IMatrixJsonItemVM.RowsResizable)); 96 97 checkBoxColumns.DataBindings.Add("Checked", vm, nameof(IMatrixJsonItemVM.ColumnsResizable)); … … 108 109 } 109 110 110 public JsonItemMultiValueControl(IArrayJsonItemVM vm, T[] array) : base(vm){111 public JsonItemMultiValueControl(IArrayJsonItemVM vm, T[] array) /*: base(vm)*/ { 111 112 InitializeComponent(); 112 113 VM = vm; 113 114 checkBoxRows.DataBindings.Add("Checked", vm, nameof(IArrayJsonItemVM.Resizable)); 114 115 … … 117 118 Matrix = new T[1][]; 118 119 Matrix[0] = array; 119 /*120 for (int r = 0; r < length; ++r) {121 Matrix[r] = new T[1];122 Matrix[r][0] = array[r];123 }124 */125 120 _cols = 1; 126 121 _rows = length; … … 158 153 T[][] tmp = Matrix; 159 154 Matrix = new T[Columns][]; 160 155 161 156 // columns must added first 162 157 if(RowNames != null && RowNames.Count() == Columns) { … … 191 186 } 192 187 dataGridView.RowHeadersWidth = 100; 188 193 189 } 194 190 -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemRangeControl.Designer.cs
r17454 r17464 24 24 /// </summary> 25 25 private void InitializeComponent() { 26 this.components = new System.ComponentModel.Container(); 26 27 this.groupBox1 = new System.Windows.Forms.GroupBox(); 27 28 this.textBoxValueTo = new System.Windows.Forms.TextBox(); … … 30 31 this.label2 = new System.Windows.Forms.Label(); 31 32 this.numericRangeControl = new HeuristicLab.JsonInterface.OptimizerIntegration.NumericRangeControl(); 33 this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components); 34 this.groupBox1.SuspendLayout(); 32 35 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 33 this.groupBox1.SuspendLayout();34 36 this.SuspendLayout(); 35 37 // … … 42 44 this.groupBox1.Controls.Add(this.label4); 43 45 this.groupBox1.Controls.Add(this.label2); 44 this.groupBox1.Location = new System.Drawing.Point(7, 101); 46 this.groupBox1.Location = new System.Drawing.Point(0, 0); 47 this.groupBox1.Margin = new System.Windows.Forms.Padding(0); 45 48 this.groupBox1.Name = "groupBox1"; 46 this.groupBox1.Size = new System.Drawing.Size( 487, 65);49 this.groupBox1.Size = new System.Drawing.Size(500, 68); 47 50 this.groupBox1.TabIndex = 17; 48 51 this.groupBox1.TabStop = false; … … 53 56 this.textBoxValueTo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 54 57 | System.Windows.Forms.AnchorStyles.Right))); 55 this.textBoxValueTo.Location = new System.Drawing.Point(8 3, 39);58 this.textBoxValueTo.Location = new System.Drawing.Point(85, 39); 56 59 this.textBoxValueTo.Name = "textBoxValueTo"; 57 this.textBoxValueTo.Size = new System.Drawing.Size( 398, 20);60 this.textBoxValueTo.Size = new System.Drawing.Size(409, 20); 58 61 this.textBoxValueTo.TabIndex = 3; 59 62 // 60 63 // textBoxValueFrom 61 64 // 62 this.textBoxValueFrom.Location = new System.Drawing.Point(83, 13); 65 this.textBoxValueFrom.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 66 | System.Windows.Forms.AnchorStyles.Right))); 67 this.textBoxValueFrom.Location = new System.Drawing.Point(85, 13); 63 68 this.textBoxValueFrom.Name = "textBoxValueFrom"; 64 this.textBoxValueFrom.Size = new System.Drawing.Size( 398, 20);69 this.textBoxValueFrom.Size = new System.Drawing.Size(409, 20); 65 70 this.textBoxValueFrom.TabIndex = 2; 66 71 // … … 91 96 this.numericRangeControl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 92 97 | System.Windows.Forms.AnchorStyles.Right))); 93 this.numericRangeControl.Location = new System.Drawing.Point( 7, 172);98 this.numericRangeControl.Location = new System.Drawing.Point(0, 71); 94 99 this.numericRangeControl.Name = "numericRangeControl"; 95 this.numericRangeControl.Size = new System.Drawing.Size( 487, 74);100 this.numericRangeControl.Size = new System.Drawing.Size(500, 74); 96 101 this.numericRangeControl.TabIndex = 18; 102 // 103 // errorProvider 104 // 105 this.errorProvider.ContainerControl = this; 97 106 // 98 107 // JsonItemRangeControl … … 104 113 this.errorProvider.SetIconAlignment(this, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 105 114 this.Name = "JsonItemRangeControl"; 106 this.Size = new System.Drawing.Size(500, 252); 107 this.Controls.SetChildIndex(this.groupBox1, 0); 108 this.Controls.SetChildIndex(this.numericRangeControl, 0); 109 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 115 this.Size = new System.Drawing.Size(500, 146); 110 116 this.groupBox1.ResumeLayout(false); 111 117 this.groupBox1.PerformLayout(); 118 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 112 119 this.ResumeLayout(false); 113 this.PerformLayout();114 120 115 121 } … … 123 129 private System.Windows.Forms.Label label2; 124 130 private NumericRangeControl numericRangeControl; 131 private System.Windows.Forms.ErrorProvider errorProvider; 125 132 } 126 133 } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemRangeControl.cs
r17454 r17464 11 11 12 12 namespace HeuristicLab.JsonInterface.OptimizerIntegration { 13 public partial class JsonItemRangeControl : JsonItemBaseControl { 13 public partial class JsonItemRangeControl : UserControl { 14 IJsonItemVM VM { get; set; } 14 15 15 public JsonItemRangeControl(DoubleRangeVM vm) : base(vm) { 16 17 public JsonItemRangeControl(DoubleRangeVM vm) { 16 18 InitializeComponent(); 19 VM = vm; 17 20 textBoxValueFrom.DataBindings.Add("Text", vm, nameof(vm.MinValue)); 18 21 textBoxValueTo.DataBindings.Add("Text", vm, nameof(vm.MaxValue)); … … 20 23 21 24 } 22 public JsonItemRangeControl(IntRangeVM vm) : base(vm){25 public JsonItemRangeControl(IntRangeVM vm) { 23 26 InitializeComponent(); 27 VM = vm; 24 28 textBoxValueFrom.DataBindings.Add("Text", vm, nameof(vm.MinValue)); 25 29 textBoxValueTo.DataBindings.Add("Text", vm, nameof(vm.MaxValue)); -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValidValuesControl.Designer.cs
r17446 r17464 24 24 /// </summary> 25 25 private void InitializeComponent() { 26 this.components = new System.ComponentModel.Container(); 26 27 this.tableOptions = new System.Windows.Forms.TableLayoutPanel(); 27 28 this.comboBoxValues = new System.Windows.Forms.ComboBox(); 28 29 this.label2 = new System.Windows.Forms.Label(); 29 30 this.groupBoxRange = new System.Windows.Forms.GroupBox(); 31 this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components); 30 32 this.groupBoxRange.SuspendLayout(); 33 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 31 34 this.SuspendLayout(); 32 35 // … … 44 47 this.tableOptions.RowCount = 1; 45 48 this.tableOptions.RowStyles.Add(new System.Windows.Forms.RowStyle()); 46 this.tableOptions.Size = new System.Drawing.Size(4 82, 170);49 this.tableOptions.Size = new System.Drawing.Size(491, 190); 47 50 this.tableOptions.TabIndex = 12; 48 51 // … … 53 56 this.comboBoxValues.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 54 57 this.comboBoxValues.FormattingEnabled = true; 55 this.comboBoxValues.Location = new System.Drawing.Point(92, 101); 58 this.comboBoxValues.Location = new System.Drawing.Point(89, 1); 59 this.comboBoxValues.Margin = new System.Windows.Forms.Padding(0); 56 60 this.comboBoxValues.Name = "comboBoxValues"; 57 this.comboBoxValues.Size = new System.Drawing.Size(40 2, 21);61 this.comboBoxValues.Size = new System.Drawing.Size(408, 21); 58 62 this.comboBoxValues.TabIndex = 15; 59 63 // … … 61 65 // 62 66 this.label2.AutoSize = true; 63 this.label2.Location = new System.Drawing.Point( 6, 104);67 this.label2.Location = new System.Drawing.Point(3, 1); 64 68 this.label2.Name = "label2"; 65 69 this.label2.Size = new System.Drawing.Size(34, 13); … … 73 77 | System.Windows.Forms.AnchorStyles.Right))); 74 78 this.groupBoxRange.Controls.Add(this.tableOptions); 75 this.groupBoxRange.Location = new System.Drawing.Point(6, 128); 79 this.groupBoxRange.Location = new System.Drawing.Point(0, 22); 80 this.groupBoxRange.Margin = new System.Windows.Forms.Padding(0, 3, 0, 0); 76 81 this.groupBoxRange.Name = "groupBoxRange"; 77 this.groupBoxRange.Size = new System.Drawing.Size(4 88, 189);82 this.groupBoxRange.Size = new System.Drawing.Size(497, 209); 78 83 this.groupBoxRange.TabIndex = 17; 79 84 this.groupBoxRange.TabStop = false; 80 85 this.groupBoxRange.Text = "Range"; 86 // 87 // errorProvider 88 // 89 this.errorProvider.ContainerControl = this; 81 90 // 82 91 // JsonItemValidValuesControl … … 88 97 this.Controls.Add(this.comboBoxValues); 89 98 this.ForeColor = System.Drawing.Color.Black; 99 this.errorProvider.SetIconAlignment(this, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 90 100 this.Name = "JsonItemValidValuesControl"; 91 this.Size = new System.Drawing.Size(500, 323); 92 this.Controls.SetChildIndex(this.comboBoxValues, 0); 93 this.Controls.SetChildIndex(this.label2, 0); 94 this.Controls.SetChildIndex(this.groupBoxRange, 0); 101 this.Size = new System.Drawing.Size(500, 231); 95 102 this.groupBoxRange.ResumeLayout(false); 103 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 96 104 this.ResumeLayout(false); 97 105 this.PerformLayout(); … … 104 112 private System.Windows.Forms.Label label2; 105 113 private System.Windows.Forms.GroupBox groupBoxRange; 114 private System.Windows.Forms.ErrorProvider errorProvider; 106 115 } 107 116 } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValidValuesControl.cs
r17443 r17464 10 10 11 11 namespace HeuristicLab.JsonInterface.OptimizerIntegration { 12 public partial class JsonItemValidValuesControl : JsonItemBaseControl {12 public partial class JsonItemValidValuesControl : UserControl { 13 13 14 public JsonItemValidValuesControl(StringValueVM vm) : base(vm) { 14 IJsonItemVM VM { get; set; } 15 16 public JsonItemValidValuesControl(StringValueVM vm) { 15 17 InitializeComponent(); 18 VM = vm; 16 19 if (VM.Item.Range != null) { 17 20 foreach (var i in VM.Item.Range) -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValidValuesControl.resx
r17404 r17464 118 118 <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> 119 119 </resheader> 120 <metadata name="errorProvider.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 121 <value>17, 17</value> 122 </metadata> 120 123 </root> -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValueControl.Designer.cs
r17444 r17464 24 24 /// </summary> 25 25 private void InitializeComponent() { 26 this.components = new System.ComponentModel.Container(); 26 27 this.textBoxValue = new System.Windows.Forms.TextBox(); 27 28 this.label2 = new System.Windows.Forms.Label(); 28 29 this.numericRangeControl1 = new HeuristicLab.JsonInterface.OptimizerIntegration.NumericRangeControl(); 30 this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components); 31 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 29 32 this.SuspendLayout(); 30 33 // … … 33 36 this.textBoxValue.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 34 37 | System.Windows.Forms.AnchorStyles.Right))); 35 this.textBoxValue.Location = new System.Drawing.Point(92, 101); 38 this.textBoxValue.Location = new System.Drawing.Point(89, 1); 39 this.textBoxValue.Margin = new System.Windows.Forms.Padding(0); 36 40 this.textBoxValue.Name = "textBoxValue"; 37 this.textBoxValue.Size = new System.Drawing.Size(40 2, 20);41 this.textBoxValue.Size = new System.Drawing.Size(408, 20); 38 42 this.textBoxValue.TabIndex = 14; 39 43 this.textBoxValue.Validating += new System.ComponentModel.CancelEventHandler(this.textBoxValue_Validating); … … 42 46 // 43 47 this.label2.AutoSize = true; 44 this.label2.Location = new System.Drawing.Point( 6, 104);48 this.label2.Location = new System.Drawing.Point(3, 1); 45 49 this.label2.Name = "label2"; 46 50 this.label2.Size = new System.Drawing.Size(34, 13); … … 52 56 this.numericRangeControl1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 53 57 | System.Windows.Forms.AnchorStyles.Right))); 54 this.numericRangeControl1.Location = new System.Drawing.Point(9, 125); 58 this.numericRangeControl1.Location = new System.Drawing.Point(0, 24); 59 this.numericRangeControl1.Margin = new System.Windows.Forms.Padding(0, 3, 0, 0); 55 60 this.numericRangeControl1.Name = "numericRangeControl1"; 56 this.numericRangeControl1.Size = new System.Drawing.Size(4 85, 72);61 this.numericRangeControl1.Size = new System.Drawing.Size(497, 72); 57 62 this.numericRangeControl1.TabIndex = 16; 63 // 64 // errorProvider 65 // 66 this.errorProvider.ContainerControl = this; 58 67 // 59 68 // JsonItemValueControl … … 64 73 this.Controls.Add(this.label2); 65 74 this.Controls.Add(this.textBoxValue); 75 this.errorProvider.SetIconAlignment(this, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 66 76 this.Name = "JsonItemValueControl"; 67 this.Size = new System.Drawing.Size(500, 199); 68 this.Controls.SetChildIndex(this.textBoxValue, 0); 69 this.Controls.SetChildIndex(this.label2, 0); 70 this.Controls.SetChildIndex(this.numericRangeControl1, 0); 77 this.Size = new System.Drawing.Size(500, 97); 78 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 71 79 this.ResumeLayout(false); 72 80 this.PerformLayout(); … … 79 87 private System.Windows.Forms.Label label2; 80 88 private NumericRangeControl numericRangeControl1; 89 private System.Windows.Forms.ErrorProvider errorProvider; 81 90 } 82 91 } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValueControl.cs
r17444 r17464 34 34 } 35 35 36 public abstract partial class JsonItemValueControl : JsonItemBaseControl {36 public abstract partial class JsonItemValueControl : UserControl { 37 37 #region Protected Properties 38 protected IJsonItemVM VM { get; set; } 38 39 protected TextBox TBValue { get; set; } 39 40 protected NumericRangeControl NumericRangeControl { get; set; } … … 44 45 #endregion 45 46 46 public JsonItemValueControl(JsonItemVMBase vm) : base(vm){47 public JsonItemValueControl(JsonItemVMBase vm) { 47 48 InitializeComponent(); 49 VM = vm; 48 50 TBValue = textBoxValue; 49 51 NumericRangeControl = numericRangeControl1; … … 51 53 52 54 protected void Init() { 53 TBValue.DataBindings.Add("Text", base.VM, ValuePropertyId);55 TBValue.DataBindings.Add("Text", VM, ValuePropertyId); 54 56 NumericRangeControl.TBMinRange.DataBindings.Add("Text", VM, nameof(RangedValueBaseVM.MinRange)); 55 57 NumericRangeControl.TBMaxRange.DataBindings.Add("Text", VM, nameof(RangedValueBaseVM.MaxRange)); -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValueControl.resx
r17404 r17464 118 118 <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> 119 119 </resheader> 120 <metadata name="errorProvider.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 121 <value>17, 17</value> 122 </metadata> 120 123 </root>
Note: See TracChangeset
for help on using the changeset viewer.