Changeset 5926 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Symbols/LaggedVariableView.cs
- Timestamp:
- 04/01/11 14:05:40 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Symbols/LaggedVariableView.cs
r5809 r5926 71 71 private void minTimeOffsetTextBox_TextChanged(object sender, EventArgs e) { 72 72 int timeOffset; 73 if (int.TryParse(minTimeOffsetTextBox.Text, out timeOffset) && timeOffset < 0) {73 if (int.TryParse(minTimeOffsetTextBox.Text, out timeOffset) && timeOffset <= 0) { 74 74 Content.MinLag = timeOffset; 75 75 errorProvider.SetError(minTimeOffsetTextBox, string.Empty); 76 76 } else { 77 errorProvider.SetError(minTimeOffsetTextBox, "Time offset must be a negative value.");77 errorProvider.SetError(minTimeOffsetTextBox, "Time offset must be negative or zero."); 78 78 } 79 79 } … … 81 81 private void maxTimeOffsetTextBox_TextChanged(object sender, EventArgs e) { 82 82 int timeOffset; 83 if (int.TryParse(maxTimeOffsetTextBox.Text, out timeOffset) && timeOffset < 0) {83 if (int.TryParse(maxTimeOffsetTextBox.Text, out timeOffset) && timeOffset <= 0) { 84 84 Content.MaxLag = timeOffset; 85 85 errorProvider.SetError(maxTimeOffsetTextBox, string.Empty); 86 86 } else { 87 errorProvider.SetError(maxTimeOffsetTextBox, "Time offset must be a negative value.");87 errorProvider.SetError(maxTimeOffsetTextBox, "Time offset must be negative or zero."); 88 88 } 89 89 }
Note: See TracChangeset
for help on using the changeset viewer.