Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/01/11 14:05:40 (13 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/TimeLagView.cs

    r5809 r5926  
    7272    private void minTimeOffsetTextBox_TextChanged(object sender, EventArgs e) {
    7373      int timeOffset;
    74       if (int.TryParse(minTimeOffsetTextBox.Text, out timeOffset) && timeOffset < 0) {
     74      if (int.TryParse(minTimeOffsetTextBox.Text, out timeOffset) && timeOffset <= 0) {
    7575        Content.MinLag = timeOffset;
    7676        errorProvider.SetError(minTimeOffsetTextBox, string.Empty);
    7777      } else {
    78         errorProvider.SetError(minTimeOffsetTextBox, "Time offset must be a negative value.");
     78        errorProvider.SetError(minTimeOffsetTextBox, "Time offset must be negative or zero.");
    7979      }
    8080    }
     
    8282    private void maxTimeOffsetTextBox_TextChanged(object sender, EventArgs e) {
    8383      int timeOffset;
    84       if (int.TryParse(maxTimeOffsetTextBox.Text, out timeOffset) && timeOffset < 0) {
     84      if (int.TryParse(maxTimeOffsetTextBox.Text, out timeOffset) && timeOffset <= 0) {
    8585        Content.MaxLag = timeOffset;
    8686        errorProvider.SetError(maxTimeOffsetTextBox, string.Empty);
    8787      } else {
    88         errorProvider.SetError(maxTimeOffsetTextBox, "Time offset must be a negative value.");
     88        errorProvider.SetError(maxTimeOffsetTextBox, "Time offset must be negative or zero.");
    8989      }
    9090    }
Note: See TracChangeset for help on using the changeset viewer.