Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/11/13 16:47:11 (12 years ago)
Author:
sforsten
Message:

#2018:

  • renamed the structs and methods in IStringConvertibleMatrix
  • added MatrixValuesChangedEventArgs in IStringConvertibleMatrix
  • added methods SetValues(MatrixValues<T>) in ValueTypeMatrix
  • fixed bugs in StringConvertibleMatrixView: DataGridView has now at least one column and dataGridView_CellValidating does not set e.Cancel to true anymore.
Location:
branches/ImprovingStringConvertibleMatrix/HeuristicLab.Problems.TestFunctions/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/ImprovingStringConvertibleMatrix/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionProblem.cs

    r9286 r9306  
    183183      UpdateStrategyVectorBounds();
    184184    }
    185     private void Bounds_ItemChanged(object sender, EventArgs<IEnumerable<Position>> e) {
     185    private void Bounds_ItemChanged(object sender, MatrixValuesChangedEventArgs e) {
    186186      foreach (var pos in e.Value) {
    187187        if (pos.Column == 0 && Bounds[pos.Row, 1] <= Bounds[pos.Row, 0])
     
    242242      BoundsParameter.ValueChanged += new EventHandler(BoundsParameter_ValueChanged);
    243243      Bounds.ToStringChanged += new EventHandler(Bounds_ToStringChanged);
    244       Bounds.ItemsChanged += new EventHandler<EventArgs<IEnumerable<Position>>>(Bounds_ItemChanged);
     244      Bounds.ItemsChanged += new EventHandler<MatrixValuesChangedEventArgs>(Bounds_ItemChanged);
    245245      SolutionCreator.RealVectorParameter.ActualNameChanged += new EventHandler(SolutionCreator_RealVectorParameter_ActualNameChanged);
    246246      Evaluator.QualityParameter.ActualNameChanged += new EventHandler(Evaluator_QualityParameter_ActualNameChanged);
  • branches/ImprovingStringConvertibleMatrix/HeuristicLab.Problems.TestFunctions/3.3/SingleObjectiveTestFunctionSolution.cs

    r9286 r9306  
    2121
    2222using System;
    23 using System.Collections.Generic;
    2423using System.Drawing;
    2524using HeuristicLab.Collections;
     
    237236    }
    238237    private void RegisterBoundsEvents() {
    239       Bounds.ItemsChanged += new EventHandler<EventArgs<IEnumerable<Position>>>(Bounds_ItemChanged);
     238      Bounds.ItemsChanged += new EventHandler<MatrixValuesChangedEventArgs>(Bounds_ItemChanged);
    240239      Bounds.Reset += new EventHandler(Bounds_Reset);
    241240    }
    242241    private void DeregisterBoundsEvents() {
    243       Bounds.ItemsChanged -= new EventHandler<EventArgs<IEnumerable<Position>>>(Bounds_ItemChanged);
     242      Bounds.ItemsChanged -= new EventHandler<MatrixValuesChangedEventArgs>(Bounds_ItemChanged);
    244243      Bounds.Reset -= new EventHandler(Bounds_Reset);
    245244    }
     
    269268      OnPopulationChanged();
    270269    }
    271     private void Bounds_ItemChanged(object sender, EventArgs<IEnumerable<Position>> e) {
     270    private void Bounds_ItemChanged(object sender, MatrixValuesChangedEventArgs e) {
    272271      OnBoundsChanged();
    273272    }
Note: See TracChangeset for help on using the changeset viewer.