Changeset 17444 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared
- Timestamp:
- 02/18/20 16:28:53 (5 years ago)
- Location:
- branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared/JsonItemBaseControl.Designer.cs
r17443 r17444 24 24 /// </summary> 25 25 private void InitializeComponent() { 26 this.components = new System.ComponentModel.Container(); 26 27 this.labelEnable = new System.Windows.Forms.Label(); 27 28 this.checkBoxActive = new System.Windows.Forms.CheckBox(); … … 32 33 this.labelDescription = new System.Windows.Forms.Label(); 33 34 this.textBoxDescription = new System.Windows.Forms.TextBox(); 35 this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components); 36 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 34 37 this.SuspendLayout(); 35 38 // … … 77 80 this.textBoxName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 78 81 | System.Windows.Forms.AnchorStyles.Right))); 82 this.errorProvider.SetIconAlignment(this.textBoxName, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 79 83 this.textBoxName.Location = new System.Drawing.Point(92, 23); 80 84 this.textBoxName.Name = "textBoxName"; 81 85 this.textBoxName.Size = new System.Drawing.Size(402, 20); 82 86 this.textBoxName.TabIndex = 10; 87 this.textBoxName.Validating += new System.ComponentModel.CancelEventHandler(this.textBoxName_Validating); 83 88 // 84 89 // label1 … … 110 115 this.textBoxDescription.TabIndex = 14; 111 116 // 117 // errorProvider 118 // 119 this.errorProvider.BlinkStyle = System.Windows.Forms.ErrorBlinkStyle.NeverBlink; 120 this.errorProvider.ContainerControl = this; 121 // 112 122 // JsonItemBaseControl 113 123 // … … 122 132 this.Controls.Add(this.textBoxName); 123 133 this.Controls.Add(this.label1); 134 this.errorProvider.SetIconAlignment(this, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 124 135 this.Name = "JsonItemBaseControl"; 125 136 this.Padding = new System.Windows.Forms.Padding(3); 126 137 this.Size = new System.Drawing.Size(500, 154); 138 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 127 139 this.ResumeLayout(false); 128 140 this.PerformLayout(); … … 140 152 private System.Windows.Forms.Label labelDescription; 141 153 private System.Windows.Forms.TextBox textBoxDescription; 154 protected System.Windows.Forms.ErrorProvider errorProvider; 142 155 } 143 156 } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared/JsonItemBaseControl.cs
r17443 r17444 31 31 else 32 32 textBoxActualName.Text = VM.Item.ActualName; 33 33 34 } 35 36 private void textBoxName_Validating(object sender, CancelEventArgs e) { 37 if(string.IsNullOrWhiteSpace(textBoxName.Text)) { 38 errorProvider.SetError(textBoxName, "Name must not be empty."); 39 e.Cancel = true; 40 } else { 41 errorProvider.SetError(textBoxName, null); 42 } 34 43 } 35 44 } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared/JsonItemBaseControl.resx
r17404 r17444 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/Shared/NumericRangeControl.Designer.cs
r17411 r17444 24 24 /// </summary> 25 25 private void InitializeComponent() { 26 this.components = new System.ComponentModel.Container(); 26 27 this.textBoxFrom = new System.Windows.Forms.TextBox(); 27 28 this.label6 = new System.Windows.Forms.Label(); 28 29 this.groupBox2 = new System.Windows.Forms.GroupBox(); 29 this.checkBoxFrom = new System.Windows.Forms.CheckBox();30 30 this.checkBoxTo = new System.Windows.Forms.CheckBox(); 31 31 this.textBoxTo = new System.Windows.Forms.TextBox(); 32 32 this.label1 = new System.Windows.Forms.Label(); 33 this.checkBoxFrom = new System.Windows.Forms.CheckBox(); 34 this.errorProvider = new System.Windows.Forms.ErrorProvider(this.components); 33 35 this.groupBox2.SuspendLayout(); 36 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 34 37 this.SuspendLayout(); 35 38 // … … 38 41 this.textBoxFrom.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 39 42 | System.Windows.Forms.AnchorStyles.Right))); 40 this.textBoxFrom.Location = new System.Drawing.Point(36, 36); 43 this.errorProvider.SetIconAlignment(this.textBoxFrom, System.Windows.Forms.ErrorIconAlignment.MiddleLeft); 44 this.textBoxFrom.Location = new System.Drawing.Point(67, 17); 41 45 this.textBoxFrom.Name = "textBoxFrom"; 42 46 this.textBoxFrom.ReadOnly = true; 43 this.textBoxFrom.Size = new System.Drawing.Size( 164, 20);47 this.textBoxFrom.Size = new System.Drawing.Size(253, 20); 44 48 this.textBoxFrom.TabIndex = 2; 49 this.textBoxFrom.Validating += new System.ComponentModel.CancelEventHandler(this.textBoxFrom_Validating); 45 50 // 46 51 // label6 … … 49 54 | System.Windows.Forms.AnchorStyles.Right))); 50 55 this.label6.AutoSize = true; 51 this.label6.Location = new System.Drawing.Point( 7, 20);56 this.label6.Location = new System.Drawing.Point(31, 21); 52 57 this.label6.Name = "label6"; 53 58 this.label6.Size = new System.Drawing.Size(30, 13); … … 57 62 // groupBox2 58 63 // 59 this.groupBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)60 | System.Windows.Forms.AnchorStyles.Right)));61 64 this.groupBox2.Controls.Add(this.checkBoxTo); 62 65 this.groupBox2.Controls.Add(this.textBoxTo); … … 65 68 this.groupBox2.Controls.Add(this.textBoxFrom); 66 69 this.groupBox2.Controls.Add(this.label6); 67 this.groupBox2.Location = new System.Drawing.Point(0, 3); 70 this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill; 71 this.groupBox2.Location = new System.Drawing.Point(0, 0); 68 72 this.groupBox2.Name = "groupBox2"; 69 this.groupBox2.Size = new System.Drawing.Size( 206, 109);73 this.groupBox2.Size = new System.Drawing.Size(326, 75); 70 74 this.groupBox2.TabIndex = 19; 71 75 this.groupBox2.TabStop = false; 72 76 this.groupBox2.Text = "Range"; 73 77 // 74 // checkBoxFrom75 //76 this.checkBoxFrom.AutoSize = true;77 this.checkBoxFrom.Location = new System.Drawing.Point(10, 39);78 this.checkBoxFrom.Name = "checkBoxFrom";79 this.checkBoxFrom.Size = new System.Drawing.Size(15, 14);80 this.checkBoxFrom.TabIndex = 4;81 this.checkBoxFrom.UseVisualStyleBackColor = true;82 //83 78 // checkBoxTo 84 79 // 85 80 this.checkBoxTo.AutoSize = true; 86 this.checkBoxTo.Location = new System.Drawing.Point(10, 78);81 this.checkBoxTo.Location = new System.Drawing.Point(10, 46); 87 82 this.checkBoxTo.Name = "checkBoxTo"; 88 83 this.checkBoxTo.Size = new System.Drawing.Size(15, 14); … … 94 89 this.textBoxTo.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 95 90 | System.Windows.Forms.AnchorStyles.Right))); 96 this.textBoxTo.Location = new System.Drawing.Point(36, 75); 91 this.errorProvider.SetIconAlignment(this.textBoxTo, System.Windows.Forms.ErrorIconAlignment.TopLeft); 92 this.textBoxTo.Location = new System.Drawing.Point(67, 43); 97 93 this.textBoxTo.Name = "textBoxTo"; 98 94 this.textBoxTo.ReadOnly = true; 99 this.textBoxTo.Size = new System.Drawing.Size( 164, 20);95 this.textBoxTo.Size = new System.Drawing.Size(253, 20); 100 96 this.textBoxTo.TabIndex = 6; 97 this.textBoxTo.Validating += new System.ComponentModel.CancelEventHandler(this.textBoxTo_Validating); 101 98 // 102 99 // label1 … … 105 102 | System.Windows.Forms.AnchorStyles.Right))); 106 103 this.label1.AutoSize = true; 107 this.label1.Location = new System.Drawing.Point( 7, 59);104 this.label1.Location = new System.Drawing.Point(31, 46); 108 105 this.label1.Name = "label1"; 109 106 this.label1.Size = new System.Drawing.Size(20, 13); 110 107 this.label1.TabIndex = 5; 111 108 this.label1.Text = "To"; 109 // 110 // checkBoxFrom 111 // 112 this.checkBoxFrom.AutoSize = true; 113 this.checkBoxFrom.Location = new System.Drawing.Point(10, 20); 114 this.checkBoxFrom.Name = "checkBoxFrom"; 115 this.checkBoxFrom.Size = new System.Drawing.Size(15, 14); 116 this.checkBoxFrom.TabIndex = 4; 117 this.checkBoxFrom.UseVisualStyleBackColor = true; 118 // 119 // errorProvider 120 // 121 this.errorProvider.BlinkStyle = System.Windows.Forms.ErrorBlinkStyle.NeverBlink; 122 this.errorProvider.ContainerControl = this; 112 123 // 113 124 // NumericRangeControl … … 117 128 this.Controls.Add(this.groupBox2); 118 129 this.Name = "NumericRangeControl"; 119 this.Size = new System.Drawing.Size( 206, 112);130 this.Size = new System.Drawing.Size(326, 75); 120 131 this.groupBox2.ResumeLayout(false); 121 132 this.groupBox2.PerformLayout(); 133 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 122 134 this.ResumeLayout(false); 123 135 … … 132 144 private System.Windows.Forms.Label label1; 133 145 private System.Windows.Forms.CheckBox checkBoxFrom; 146 private System.Windows.Forms.ErrorProvider errorProvider; 134 147 } 135 148 } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared/NumericRangeControl.cs
r17411 r17444 33 33 textBoxFrom.ReadOnly = !checkBoxFrom.Checked; 34 34 } 35 36 private void textBoxFrom_Validating(object sender, CancelEventArgs e) { 37 if (string.IsNullOrWhiteSpace(textBoxFrom.Text)) { 38 errorProvider.SetError(textBoxFrom, "'From' must not be empty."); 39 e.Cancel = true; 40 } else { 41 errorProvider.SetError(textBoxFrom, null); 42 } 43 } 44 45 private void textBoxTo_Validating(object sender, CancelEventArgs e) { 46 if (string.IsNullOrWhiteSpace(textBoxTo.Text)) { 47 errorProvider.SetError(textBoxTo, "'To' must not be empty."); 48 e.Cancel = true; 49 } else { 50 errorProvider.SetError(textBoxTo, null); 51 } 52 } 35 53 } 36 54 } -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Shared/NumericRangeControl.resx
r17405 r17444 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.