- Timestamp:
- 03/12/13 12:20:25 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ImprovingStringConvertibleMatrix/HeuristicLab.Data/3.3/Interfaces/IStringConvertibleArray.cs
r7259 r9308 21 21 22 22 using System; 23 using System.Collections.Generic; 23 24 using HeuristicLab.Common; 24 25 … … 26 27 public interface IStringConvertibleArray : IContent { 27 28 int Length { get; set; } 29 IEnumerable<string> ColumnNames { get; set; } 28 30 29 31 bool ReadOnly { get; } … … 32 34 string GetValue(int index); 33 35 bool SetValue(string value, int index); 36 bool SetValue(ArrayValue<string> arrayValue); 37 bool SetValues(IEnumerable<ArrayValue<string>> arrayValues); 34 38 35 event EventHandler<EventArgs<int>> ItemChanged; 39 event EventHandler ColumnNamesChanged; 40 event EventHandler<ArrayValuesChangedEventArgs> ItemsChanged; 36 41 event EventHandler Reset; 37 42 } 43 public class ArrayValuesChangedEventArgs : EventArgs<IEnumerable<int>> { 44 public ArrayValuesChangedEventArgs(IEnumerable<int> indices) : base(indices) { } 45 } 46 public struct ArrayValue<T> { 47 public int Index { get; private set; } 48 public T Value { get; private set; } 49 50 public ArrayValue(int index, T value) 51 : this() { 52 Index = index; 53 Value = value; 54 } 55 } 38 56 }
Note: See TracChangeset
for help on using the changeset viewer.