Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/05/13 16:37:17 (12 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:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/ImprovingStringConvertibleMatrix

    • Property svn:ignore set to
      *.suo
  • branches/ImprovingStringConvertibleMatrix/HeuristicLab.Analysis/3.3/DataVisualization/DataTable.cs

    r8280 r9286  
    245245      throw new NotSupportedException();
    246246    }
    247 
    248     public event EventHandler<EventArgs<int, int>> ItemChanged;
    249     protected virtual void OnItemChanged(int rowIndex, int columnIndex) {
    250       var handler = ItemChanged;
    251       if (handler != null) handler(this, new EventArgs<int, int>(rowIndex, columnIndex));
     247    bool IStringConvertibleMatrix.SetValue(RowColumnValue rowColumnValue) {
     248      throw new NotSupportedException();
     249    }
     250    bool IStringConvertibleMatrix.SetValue(IEnumerable<RowColumnValue> rowColumnValues) {
     251      throw new NotSupportedException();
     252    }
     253
     254    public event EventHandler<EventArgs<IEnumerable<Position>>> ItemsChanged;
     255    protected virtual void OnItemsChanged(IEnumerable<Position> positions) {
     256      var handler = ItemsChanged;
     257      if (handler != null) handler(this, new EventArgs<IEnumerable<Position>>(positions));
    252258      OnToStringChanged();
    253259    }
  • branches/ImprovingStringConvertibleMatrix/HeuristicLab.Analysis/3.3/DataVisualization/ScatterPlot.cs

    r8405 r9286  
    259259      throw new NotSupportedException();
    260260    }
    261 
    262     public event EventHandler<EventArgs<int, int>> ItemChanged;
    263     protected virtual void OnItemChanged(int rowIndex, int columnIndex) {
    264       var handler = ItemChanged;
    265       if (handler != null) handler(this, new EventArgs<int, int>(rowIndex, columnIndex));
     261    bool IStringConvertibleMatrix.SetValue(RowColumnValue rowColumnValue) {
     262      throw new NotSupportedException();
     263    }
     264    bool IStringConvertibleMatrix.SetValue(IEnumerable<RowColumnValue> rowColumnValues) {
     265      throw new NotSupportedException();
     266    }
     267
     268    public event EventHandler<EventArgs<IEnumerable<Position>>> ItemsChanged;
     269    protected virtual void OnItemsChanged(IEnumerable<Position> positions) {
     270      var handler = ItemsChanged;
     271      if (handler != null) handler(this, new EventArgs<IEnumerable<Position>>(positions));
    266272      OnToStringChanged();
    267273    }
Note: See TracChangeset for help on using the changeset viewer.