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

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  
    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    }
  • 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.