Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/01/11 14:05:40 (14 years ago)
Author:
gkronber
Message:

#1418 changed views for time lag and lagged variable symbols to allow a lag value of zero

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Symbols/LaggedVariableView.cs

    r5809 r5926  
    7171    private void minTimeOffsetTextBox_TextChanged(object sender, EventArgs e) {
    7272      int timeOffset;
    73       if (int.TryParse(minTimeOffsetTextBox.Text, out timeOffset) && timeOffset < 0) {
     73      if (int.TryParse(minTimeOffsetTextBox.Text, out timeOffset) && timeOffset <= 0) {
    7474        Content.MinLag = timeOffset;
    7575        errorProvider.SetError(minTimeOffsetTextBox, string.Empty);
    7676      } else {
    77         errorProvider.SetError(minTimeOffsetTextBox, "Time offset must be a negative value.");
     77        errorProvider.SetError(minTimeOffsetTextBox, "Time offset must be negative or zero.");
    7878      }
    7979    }
     
    8181    private void maxTimeOffsetTextBox_TextChanged(object sender, EventArgs e) {
    8282      int timeOffset;
    83       if (int.TryParse(maxTimeOffsetTextBox.Text, out timeOffset) && timeOffset < 0) {
     83      if (int.TryParse(maxTimeOffsetTextBox.Text, out timeOffset) && timeOffset <= 0) {
    8484        Content.MaxLag = timeOffset;
    8585        errorProvider.SetError(maxTimeOffsetTextBox, string.Empty);
    8686      } else {
    87         errorProvider.SetError(maxTimeOffsetTextBox, "Time offset must be a negative value.");
     87        errorProvider.SetError(maxTimeOffsetTextBox, "Time offset must be negative or zero.");
    8888      }
    8989    }
Note: See TracChangeset for help on using the changeset viewer.