Changeset 8010 for branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views
- Timestamp:
- 06/15/12 13:17:07 (13 years ago)
- Location:
- branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/TimeSeriesPrognosisSolutionView.Designer.cs
r7183 r8010 99 99 this.horizonTextBox.Size = new System.Drawing.Size(100, 20); 100 100 this.horizonTextBox.TabIndex = 1; 101 this.horizonTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.horizonTextBox_KeyDown);102 101 this.horizonTextBox.Validating += new System.ComponentModel.CancelEventHandler(this.horizonTextBox_Validating); 103 102 this.horizonTextBox.Validated += new System.EventHandler(this.horizonTextBox_Validated); -
branches/HeuristicLab.TimeSeries/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/TimeSeriesPrognosisSolutionView.cs
r7989 r8010 61 61 int val; 62 62 if (int.TryParse(horizonTextBox.Text, out val)) { 63 e.Cancel = val <= 0 || val >= Content.ProblemData.TrainingPartition.End - Content.ProblemData.TrainingPartition.Start;63 //e.Cancel = val <= 0 || val >= Content.ProblemData.TrainingPartition.End - Content.ProblemData.TrainingPartition.Start; 64 64 } else { 65 65 e.Cancel = true; … … 72 72 Content.Horizon = val; 73 73 } 74 75 private void horizonTextBox_KeyDown(object sender, KeyEventArgs e) {76 if (e.KeyCode == Keys.Enter) {77 e.Handled = true;78 this.Focus();79 } else {80 e.Handled = false;81 }82 }83 84 74 } 85 75 }
Note: See TracChangeset
for help on using the changeset viewer.