- Timestamp:
- 03/07/16 10:18:05 (9 years ago)
- Location:
- branches/WebJobManager
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Data/3.3/ValueTypeMatrix.cs
r12012 r13656 36 36 private const int maximumToStringLength = 100; 37 37 38 public static new Image StaticItemImage { 39 get { return HeuristicLab.Common.Resources.VSImageLibrary.Class; } 38 public static new Image StaticItemImage 39 { 40 get { return new Bitmap(25, 25); } 40 41 } 41 42 … … 45 46 [Storable] 46 47 protected List<string> columnNames; 47 public virtual IEnumerable<string> ColumnNames { 48 public virtual IEnumerable<string> ColumnNames 49 { 48 50 get { return this.columnNames; } 49 set { 51 set 52 { 50 53 if (ReadOnly) throw new NotSupportedException("ColumnNames cannot be set. ValueTypeMatrix is read-only."); 51 54 if (value == null || value.Count() == 0) … … 60 63 [Storable] 61 64 protected List<string> rowNames; 62 public virtual IEnumerable<string> RowNames { 65 public virtual IEnumerable<string> RowNames 66 { 63 67 get { return this.rowNames; } 64 set { 68 set 69 { 65 70 if (ReadOnly) throw new NotSupportedException("RowNames cannot be set. ValueTypeMatrix is read-only."); 66 71 if (value == null || value.Count() == 0) … … 75 80 [Storable] 76 81 protected bool sortableView; 77 public virtual bool SortableView { 82 public virtual bool SortableView 83 { 78 84 get { return sortableView; } 79 set { 85 set 86 { 80 87 if (ReadOnly) throw new NotSupportedException("SortableView cannot be set. ValueTypeMatrix is read-only."); 81 88 if (value != sortableView) { … … 86 93 } 87 94 88 public virtual int Rows { 95 public virtual int Rows 96 { 89 97 get { return matrix.GetLength(0); } 90 protected set { 98 protected set 99 { 91 100 if (ReadOnly) throw new NotSupportedException("Rows cannot be set. ValueTypeMatrix is read-only."); 92 101 if (value != Rows) { … … 104 113 } 105 114 } 106 public virtual int Columns { 115 public virtual int Columns 116 { 107 117 get { return matrix.GetLength(1); } 108 protected set { 118 protected set 119 { 109 120 if (ReadOnly) throw new NotSupportedException("Columns cannot be set. ValueTypeMatrix is read-only."); 110 121 if (value != Columns) { … … 123 134 } 124 135 } 125 public virtual T this[int rowIndex, int columnIndex] { 136 public virtual T this[int rowIndex, int columnIndex] 137 { 126 138 get { return matrix[rowIndex, columnIndex]; } 127 set { 139 set 140 { 128 141 if (ReadOnly) throw new NotSupportedException("Item cannot be set. ValueTypeMatrix is read-only."); 129 142 if (!value.Equals(matrix[rowIndex, columnIndex])) { … … 136 149 [Storable] 137 150 protected bool readOnly; 138 public virtual bool ReadOnly { 151 public virtual bool ReadOnly 152 { 139 153 get { return readOnly; } 140 154 }
Note: See TracChangeset
for help on using the changeset viewer.