Free cookie consent management tool by TermsFeed Policy Generator

Changeset 10571


Ignore:
Timestamp:
03/12/14 12:33:09 (10 years ago)
Author:
sbreuer
Message:
  • Update DataGrid on changes in preprocessingData
Location:
branches/DataPreprocessing
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/DataGridContentView.cs

    r10558 r10571  
    5050    }
    5151
     52
     53    protected override void RegisterContentEvents() {
     54      base.RegisterContentEvents();
     55      Content.Changed += Content_Changed;
     56    }
     57
     58    protected override void DeregisterContentEvents() {
     59      base.DeregisterContentEvents();
     60      Content.Changed -= Content_Changed;
     61    }
     62
     63    void Content_Changed(object sender, DataPreprocessingChangedEventArgs e) {
     64      dataGridView.Refresh();
     65    }
    5266
    5367    private void dataGridView_CellValidating(object sender, DataGridViewCellValidatingEventArgs e) {
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/DataGridContent.cs

    r10558 r10571  
    140140    public event EventHandler Reset;
    141141
     142    public event DataPreprocessingChangedEventHandler Changed {
     143      add { dataGridLogic.Changed += value; }
     144      remove { dataGridLogic.Changed -= value; }
     145    }
    142146  }
    143147}
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/DataGridLogic.cs

    r10539 r10571  
    120120      return valid;
    121121    }
     122
     123    public event DataPreprocessingChangedEventHandler Changed {
     124      add { preprocessingData.Changed += value; }
     125      remove { preprocessingData.Changed -= value; }
     126    }
    122127  }
    123128}
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Interfaces/IDataGridContent.cs

    r10539 r10571  
    2626    IDataGridLogic DataGridLogic { get; }
    2727    IManipulationLogic PreprocessingDataManipulation { get; }
     28
     29    event DataPreprocessingChangedEventHandler Changed;
    2830  }
    2931}
  • branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Interfaces/IDataGridLogic.cs

    r10558 r10571  
    3232    bool SetValue(string value, int rowIndex, int columnIndex);
    3333    bool Validate(string value, out string errorMessage, int columnIndex);
     34
     35    event DataPreprocessingChangedEventHandler Changed;
    3436  }
    3537}
  • branches/DataPreprocessing/HeuristicLab.Tests/HeuristicLab.Tests.csproj

    r10538 r10571  
    166166      <Private>False</Private>
    167167    </Reference>
     168    <Reference Include="HeuristicLab.DataPreprocessing-3.3, Version=3.3.9.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">
     169      <SpecificVersion>False</SpecificVersion>
     170      <HintPath>..\bin\HeuristicLab.DataPreprocessing-3.3.dll</HintPath>
     171      <Private>False</Private>
     172    </Reference>
    168173    <Reference Include="HeuristicLab.Encodings.BinaryVectorEncoding-3.3">
    169174      <HintPath>..\bin\HeuristicLab.Encodings.BinaryVectorEncoding-3.3.dll</HintPath>
     
    324329    <Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
    325330      <Private>false</Private>
     331    </Reference>
     332    <Reference Include="Rhino.Mocks">
     333      <HintPath>..\packages\RhinoMocks.3.6.1\lib\net\Rhino.Mocks.dll</HintPath>
    326334    </Reference>
    327335    <Reference Include="System" />
     
    361369    <Compile Include="HeuristicLab.Collections-3.3\BidirectionalLookupTest.cs" />
    362370    <Compile Include="HeuristicLab.Collections-3.3\ObservableKeyedListTest.cs" />
     371    <Compile Include="HeuristicLab.DataPreprocessing-3.3\StatisticInfoTest.cs" />
    363372    <Compile Include="HeuristicLab.Encodings.BinaryVectorEncoding-3.3\Auxiliary.cs" />
    364373    <Compile Include="HeuristicLab.Encodings.BinaryVectorEncoding-3.3\NPointCrossoverTest.cs" />
     
    474483    </None>
    475484    <None Include="HeuristicLab.snk" />
     485    <None Include="packages.config" />
    476486    <None Include="Test Resources\GA_SymbReg.hl">
    477487      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     
    503513    </Content>
    504514  </ItemGroup>
     515  <ItemGroup />
    505516  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
    506517  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Note: See TracChangeset for help on using the changeset viewer.