- Timestamp:
- 04/01/11 14:05:40 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Symbols
- Files:
-
- 2 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 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Symbols/TimeLagView.cs
r5809 r5926 72 72 private void minTimeOffsetTextBox_TextChanged(object sender, EventArgs e) { 73 73 int timeOffset; 74 if (int.TryParse(minTimeOffsetTextBox.Text, out timeOffset) && timeOffset < 0) {74 if (int.TryParse(minTimeOffsetTextBox.Text, out timeOffset) && timeOffset <= 0) { 75 75 Content.MinLag = timeOffset; 76 76 errorProvider.SetError(minTimeOffsetTextBox, string.Empty); 77 77 } else { 78 errorProvider.SetError(minTimeOffsetTextBox, "Time offset must be a negative value.");78 errorProvider.SetError(minTimeOffsetTextBox, "Time offset must be negative or zero."); 79 79 } 80 80 } … … 82 82 private void maxTimeOffsetTextBox_TextChanged(object sender, EventArgs e) { 83 83 int timeOffset; 84 if (int.TryParse(maxTimeOffsetTextBox.Text, out timeOffset) && timeOffset < 0) {84 if (int.TryParse(maxTimeOffsetTextBox.Text, out timeOffset) && timeOffset <= 0) { 85 85 Content.MaxLag = timeOffset; 86 86 errorProvider.SetError(maxTimeOffsetTextBox, string.Empty); 87 87 } else { 88 errorProvider.SetError(maxTimeOffsetTextBox, "Time offset must be a negative value.");88 errorProvider.SetError(maxTimeOffsetTextBox, "Time offset must be negative or zero."); 89 89 } 90 90 }
Note: See TracChangeset
for help on using the changeset viewer.