- Timestamp:
- 09/12/19 14:13:02 (5 years ago)
- Location:
- branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4/ProblemDataConstraintView.cs
r17146 r17249 68 68 69 69 private IEnumerable<IntervalConstraint> ParseConstraints(string input) { 70 return IntervalConstraintsParser.ParseInput(input, Content.ProblemData.TargetVariable,71 Content.ProblemData.AllowedInputVariables);70 return IntervalConstraintsParser.ParseInput(input, Content.ProblemData.TargetVariable, 71 Content.ProblemData.AllowedInputVariables); 72 72 } 73 73 … … 125 125 126 126 private void constraintsInput_TextChanged(object sender, EventArgs e) { 127 errorOutput.Text = "Unparsed changes! Press parse button to save changes."; 128 Content.Input = constraintsInput.Text; 127 if (Content.Input != constraintsInput.Text) { 128 errorOutput.Text = "Unparsed changes! Press parse button to save changes."; 129 Content.Input = constraintsInput.Text; 130 } else { 131 errorOutput.Text = ""; 132 } 133 129 134 } 130 135 -
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4/ProblemDataConstraintView.designer.cs
r17146 r17249 20 20 #endregion 21 21 using System; 22 using System.Drawing; 23 using System.Windows.Forms; 24 using HeuristicLab.Core.Views; 22 25 23 26 namespace HeuristicLab.Problems.DataAnalysis.Views { … … 51 54 this.constraintsInput = new System.Windows.Forms.TextBox(); 52 55 this.parseBtn = new System.Windows.Forms.Button(); 56 this.errorOutput = new System.Windows.Forms.Label(); 53 57 this.label1 = new System.Windows.Forms.Label(); 54 this.intervalConstraintsView = new HeuristicLab.Core.Views.CheckedItemListView<IntervalConstraint>(); 55 this.errorOutput = new System.Windows.Forms.Label(); 58 this.intervalConstraintsView = new CheckedItemListView<IntervalConstraint>(); 56 59 ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); 57 60 this.splitContainer1.Panel1.SuspendLayout(); … … 82 85 this.groupBox1.Controls.Add(this.constraintsInput); 83 86 this.groupBox1.Controls.Add(this.parseBtn); 87 this.groupBox1.Controls.Add(this.errorOutput); 84 88 this.groupBox1.Controls.Add(this.label1); 85 89 this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill; … … 95 99 this.constraintsInput.AcceptsTab = true; 96 100 this.constraintsInput.Dock = System.Windows.Forms.DockStyle.Fill; 97 this.constraintsInput.Location = new System.Drawing.Point(3, 1 98);101 this.constraintsInput.Location = new System.Drawing.Point(3, 185); 98 102 this.constraintsInput.Multiline = true; 99 103 this.constraintsInput.Name = "constraintsInput"; … … 106 110 // 107 111 this.parseBtn.Dock = System.Windows.Forms.DockStyle.Bottom; 108 this.parseBtn.Location = new System.Drawing.Point(3, 603);112 this.parseBtn.Location = new System.Drawing.Point(3, 590); 109 113 this.parseBtn.Name = "parseBtn"; 110 114 this.parseBtn.Size = new System.Drawing.Size(290, 23); … … 114 118 this.parseBtn.Click += new System.EventHandler(this.parseBtn_Click); 115 119 // 120 // errorOutput 121 // 122 this.errorOutput.AutoSize = true; 123 this.errorOutput.ForeColor = Color.DarkRed; 124 this.errorOutput.Dock = System.Windows.Forms.DockStyle.Bottom; 125 this.errorOutput.Location = new System.Drawing.Point(3, 613); 126 this.errorOutput.Name = "errorOutput"; 127 this.errorOutput.Size = new System.Drawing.Size(35, 13); 128 this.errorOutput.TabIndex = 3; 129 this.errorOutput.Text = "label2"; 130 // 116 131 // label1 117 132 // … … 120 135 this.label1.Location = new System.Drawing.Point(3, 16); 121 136 this.label1.Name = "label1"; 122 this.label1.Size = new System.Drawing.Size( 250, 182);137 this.label1.Size = new System.Drawing.Size(354, 169); 123 138 this.label1.TabIndex = 0; 124 139 this.label1.Text = "To define target variable constraints:" + Environment.NewLine + … … 138 153 // 139 154 this.intervalConstraintsView.Dock = System.Windows.Forms.DockStyle.Fill; 140 this.intervalConstraintsView.Location = new System.Drawing.Point( 3, 16);155 this.intervalConstraintsView.Location = new System.Drawing.Point(0, 0); 141 156 this.intervalConstraintsView.Name = "intervalConstraintsView"; 142 this.intervalConstraintsView.Size = new System.Drawing.Size(58 2, 587);157 this.intervalConstraintsView.Size = new System.Drawing.Size(588, 20); 143 158 this.intervalConstraintsView.TabIndex = 2; 144 159 // 145 // errorOutput 146 // 147 this.errorOutput.Dock = System.Windows.Forms.DockStyle.Bottom; 148 this.errorOutput.ForeColor = System.Drawing.Color.Red; 149 this.errorOutput.Location = new System.Drawing.Point(3, 603); 150 this.errorOutput.Name = "errorOutput"; 151 this.errorOutput.Size = new System.Drawing.Size(582, 23); 152 this.errorOutput.TabIndex = 1; 153 this.errorOutput.Text = "ERROR"; 154 this.errorOutput.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; 155 // 156 // ParsedConstraintView 160 // ProblemDataConstraintView 157 161 // 158 162 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 159 163 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 160 164 this.Controls.Add(this.splitContainer1); 161 this.Name = "P arsedConstraintView";165 this.Name = "ProblemDataConstraintView"; 162 166 this.Size = new System.Drawing.Size(888, 629); 163 167 this.splitContainer1.Panel1.ResumeLayout(false); 164 168 this.splitContainer1.Panel2.ResumeLayout(false); 169 this.splitContainer1.Panel2.PerformLayout(); 165 170 ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); 166 171 this.splitContainer1.ResumeLayout(false); … … 179 184 private HeuristicLab.Core.Views.CheckedItemListView<IntervalConstraint> intervalConstraintsView; 180 185 private System.Windows.Forms.TextBox constraintsInput; 181 private System.Windows.Forms.Label errorOutput; 182 186 private Label errorOutput; 183 187 } 184 188 }
Note: See TracChangeset
for help on using the changeset viewer.