Ignore:
Timestamp:
02/05/19 10:12:59 (4 months ago)
Author:
chaider
Message:

#2971
Added IntervalConstraint Parameter and some fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/NamedIntervalsView.cs

    r16545 r16586  
    6565      base.SetEnabledStateOfControls();
    6666      dataGridView.Enabled = Content != null;
    67       //dataGridView.ReadOnly = ReadOnly;
     67      dataGridView.ReadOnly = ReadOnly;
    6868    }
    6969
     
    119119
    120120    private void dataGridView_CellValidating(object sender, DataGridViewCellValidatingEventArgs e) {
    121       double value;
    122 
    123121      if (dataGridView.Rows[e.RowIndex].IsNewRow) {
    124122        return;
    125123      }
    126124
    127       if (!double.TryParse(e.FormattedValue.ToString(), out value)) {
     125      if (!double.TryParse(e.FormattedValue.ToString(), out var value)) {
    128126        e.Cancel = true;
    129127        dataGridView.Rows[e.RowIndex].ErrorText = "Value must be a double value.";
     
    135133        }
    136134      }
    137      
    138135    }
    139136
Note: See TracChangeset for help on using the changeset viewer.