Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/11/13 16:47:11 (11 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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ImprovingStringConvertibleMatrix/HeuristicLab.Optimization/3.3/RunCollection.cs

    r9286 r9306  
    324324    }
    325325
    326     public event EventHandler<EventArgs<IEnumerable<Position>>> ItemsChanged;
     326    public event EventHandler<MatrixValuesChangedEventArgs> ItemsChanged;
    327327    protected virtual void OnItemsChanged(int rowIndex, int columnIndex) {
    328       EventHandler<EventArgs<IEnumerable<Position>>> handler = ItemsChanged;
    329       if (handler != null) handler(this, new EventArgs<IEnumerable<Position>>(new List<Position>(1) { new Position(rowIndex, columnIndex) }));
     328      EventHandler<MatrixValuesChangedEventArgs> handler = ItemsChanged;
     329      if (handler != null) handler(this, new MatrixValuesChangedEventArgs(new List<MatrixPosition>(1) { new MatrixPosition(rowIndex, columnIndex) }));
    330330      OnToStringChanged();
    331331    }
     
    364364    public bool Validate(string value, out string errorMessage) { throw new NotSupportedException(); }
    365365    public bool SetValue(string value, int rowIndex, int columnIndex) { throw new NotSupportedException(); }
    366     public bool SetValue(RowColumnValue rowColumnValue) { throw new NotSupportedException(); }
    367     public bool SetValue(IEnumerable<RowColumnValue> rowColumnValues) { throw new NotSupportedException(); }
     366    public bool SetValue(MatrixValue<string> rowColumnValue) { throw new NotSupportedException(); }
     367    public bool SetValues(IEnumerable<MatrixValue<string>> rowColumnValues) { throw new NotSupportedException(); }
    368368    #endregion
    369369
Note: See TracChangeset for help on using the changeset viewer.