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

#2971
Added IntervalConstraint Parameter and some fixes

Location:
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4/HeuristicLab.Problems.DataAnalysis.Views-3.4.csproj

    r16544 r16586  
    518518    <Compile Include="Solution Views\TimeSeriesPrognosisSolutionView.Designer.cs">
    519519      <DependentUpon>TimeSeriesPrognosisSolutionView.cs</DependentUpon>
     520    </Compile>
     521    <Compile Include="TextValueView.cs">
     522      <SubType>UserControl</SubType>
     523    </Compile>
     524    <Compile Include="TextValueView.designer.cs">
     525      <DependentUpon>TextValueView.cs</DependentUpon>
    520526    </Compile>
    521527    <Compile Include="TimeSeriesPrognosis\TimeSeriesPrognosisResidualsLineChartView.cs">
     
    584590      <DependentUpon>NamedIntervalsView.cs</DependentUpon>
    585591    </EmbeddedResource>
     592    <EmbeddedResource Include="TextValueView.resx">
     593      <DependentUpon>TextValueView.cs</DependentUpon>
     594    </EmbeddedResource>
    586595  </ItemGroup>
    587596  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  • 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.