Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/05/13 16:37:17 (11 years ago)
Author:
sforsten
Message:

#2018:

  • added new methods to the interface IStringConvertibleMatrix as well as two structs. Also the event ItemChanged has been changed to ItemsChanged
  • class ValueTypeMatrix now implements IStringConvertibleMatrix instead of the classes which inherit from it
  • small changes have been applied to a lot of classes to correctly implement the changed interface IStringConvertibleMatrix
  • solution file, Build.cmd and PreBuildEvent.cmd have been added
Location:
branches/ImprovingStringConvertibleMatrix
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/ImprovingStringConvertibleMatrix

    • Property svn:ignore set to
      *.suo
  • branches/ImprovingStringConvertibleMatrix/HeuristicLab.Optimization/3.3/RunCollection.cs

    r8967 r9286  
    324324    }
    325325
    326     public event EventHandler<EventArgs<int, int>> ItemChanged;
    327     protected virtual void OnItemChanged(int rowIndex, int columnIndex) {
    328       EventHandler<EventArgs<int, int>> handler = ItemChanged;
    329       if (handler != null) handler(this, new EventArgs<int, int>(rowIndex, columnIndex));
     326    public event EventHandler<EventArgs<IEnumerable<Position>>> ItemsChanged;
     327    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) }));
    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(); }
    366368    #endregion
    367369
Note: See TracChangeset for help on using the changeset viewer.