Changeset 13656 for branches/WebJobManager/HeuristicLab.Data/3.3
- Timestamp:
- 03/07/16 10:18:05 (8 years ago)
- Location:
- branches/WebJobManager
- Files:
-
- 12 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Data/3.3/BoolValue.cs
r12012 r13656 31 31 [StorableClass] 32 32 public class BoolValue : ValueTypeValue<bool>, IComparable, IStringConvertibleValue { 33 public static new Image StaticItemImage { 34 get { return HeuristicLab.Common.Resources.VSImageLibrary.Field; } 33 public static new Image StaticItemImage 34 { 35 get { return new Bitmap(25, 25); } 35 36 } 36 37 -
branches/WebJobManager/HeuristicLab.Data/3.3/Comparison.cs
r12012 r13656 30 30 [StorableClass] 31 31 public class Comparison : ValueTypeValue<ComparisonType>, IComparable { 32 public static new Image StaticItemImage { 33 get { return HeuristicLab.Common.Resources.VSImageLibrary.Enum; } 32 public static new Image StaticItemImage 33 { 34 get { return new Bitmap(25, 25); } 34 35 } 35 36 -
branches/WebJobManager/HeuristicLab.Data/3.3/DoubleValue.cs
r12433 r13656 31 31 [StorableClass] 32 32 public class DoubleValue : ValueTypeValue<double>, IComparable, IStringConvertibleValue { 33 public static new Image StaticItemImage { 34 get { return HeuristicLab.Common.Resources.VSImageLibrary.Field; } 33 public static new Image StaticItemImage 34 { 35 get { return new Bitmap(25, 25); } 35 36 } 36 37 -
branches/WebJobManager/HeuristicLab.Data/3.3/EnumValue.cs
r12148 r13656 30 30 [StorableClass] 31 31 public sealed class EnumValue<T> : ValueTypeValue<T>, IComparable<EnumValue<T>> where T : struct, IComparable { 32 public static new Image StaticItemImage { 33 get { return HeuristicLab.Common.Resources.VSImageLibrary.Enum; } 32 public static new Image StaticItemImage 33 { 34 get { return new Bitmap(25, 25); } 34 35 } 35 36 -
branches/WebJobManager/HeuristicLab.Data/3.3/IntValue.cs
r12012 r13656 31 31 [StorableClass] 32 32 public class IntValue : ValueTypeValue<int>, IComparable, IStringConvertibleValue { 33 public static new Image StaticItemImage { 34 get { return HeuristicLab.Common.Resources.VSImageLibrary.Field; } 33 public static new Image StaticItemImage 34 { 35 get { return new Bitmap(25, 25); } 35 36 } 36 37 -
branches/WebJobManager/HeuristicLab.Data/3.3/StringArray.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> elementNames; 47 public virtual IEnumerable<string> ElementNames { 48 public virtual IEnumerable<string> ElementNames 49 { 48 50 get { return this.elementNames; } 49 set { 51 set 52 { 50 53 if (ReadOnly) throw new NotSupportedException("ElementNames cannot be set. ValueTypeArray is read-only."); 51 54 if (value == null || !value.Any()) … … 59 62 } 60 63 61 public virtual int Length { 64 public virtual int Length 65 { 62 66 get { return array.Length; } 63 protected set { 67 protected set 68 { 64 69 if (ReadOnly) throw new NotSupportedException("Length cannot be set. StringArray is read-only."); 65 70 if (value != Length) { … … 72 77 } 73 78 } 74 public virtual string this[int index] { 79 public virtual string this[int index] 80 { 75 81 get { return array[index]; } 76 set { 82 set 83 { 77 84 if (ReadOnly) throw new NotSupportedException("Item cannot be set. StringArray is read-only."); 78 85 if (value != array[index]) { … … 87 94 [Storable] 88 95 protected bool readOnly; 89 public virtual bool ReadOnly { 96 public virtual bool ReadOnly 97 { 90 98 get { return readOnly; } 91 99 } … … 203 211 204 212 #region IStringConvertibleArray Members 205 int IStringConvertibleArray.Length { 213 int IStringConvertibleArray.Length 214 { 206 215 get { return Length; } 207 216 set { Length = value; } -
branches/WebJobManager/HeuristicLab.Data/3.3/StringConvertibleValueTuple.cs
r12012 r13656 32 32 where T : class, IDeepCloneable, IStringConvertibleValue 33 33 where U : class, IDeepCloneable, IStringConvertibleValue { 34 public static new Image StaticItemImage { 35 get { return HeuristicLab.Common.Resources.VSImageLibrary.ValueType; } 34 public static new Image StaticItemImage 35 { 36 get { return new Bitmap(25, 25); } 36 37 } 37 38 38 39 [Storable] 39 40 protected bool readOnly; 40 public virtual bool ReadOnly { 41 public virtual bool ReadOnly 42 { 41 43 get { return readOnly; } 42 44 } -
branches/WebJobManager/HeuristicLab.Data/3.3/StringMatrix.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. StringMatrix 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. StringMatrix 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. StringMatrix 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. StringMatrix 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. StringMatrix is read-only."); 110 121 if (value != Columns) { … … 123 134 } 124 135 } 125 public virtual string this[int rowIndex, int columnIndex] { 136 public virtual string 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. StringMatrix is read-only."); 129 142 if (value != matrix[rowIndex, columnIndex]) { … … 138 151 [Storable] 139 152 protected bool readOnly; 140 public virtual bool ReadOnly { 153 public virtual bool ReadOnly 154 { 141 155 get { return readOnly; } 142 156 } … … 309 323 310 324 #region IStringConvertibleMatrix Members 311 int IStringConvertibleMatrix.Rows { 325 int IStringConvertibleMatrix.Rows 326 { 312 327 get { return Rows; } 313 328 set { Rows = value; } 314 329 } 315 int IStringConvertibleMatrix.Columns { 330 int IStringConvertibleMatrix.Columns 331 { 316 332 get { return Columns; } 317 333 set { Columns = value; } -
branches/WebJobManager/HeuristicLab.Data/3.3/StringValue.cs
r12012 r13656 30 30 [StorableClass] 31 31 public class StringValue : Item, IComparable, IStringConvertibleValue { 32 public static new Image StaticItemImage { 33 get { return HeuristicLab.Common.Resources.VSImageLibrary.Field; } 32 public static new Image StaticItemImage 33 { 34 get { return new Bitmap(25, 25); } 34 35 } 35 36 36 37 [Storable] 37 38 protected string value; 38 public virtual string Value { 39 public virtual string Value 40 { 39 41 get { return value; } 40 set { 42 set 43 { 41 44 if (ReadOnly) throw new NotSupportedException("Value cannot be set. StringValue is read-only."); 42 45 if (value != this.value) { … … 51 54 [Storable] 52 55 protected bool readOnly; 53 public virtual bool ReadOnly { 56 public virtual bool ReadOnly 57 { 54 58 get { return readOnly; } 55 59 } -
branches/WebJobManager/HeuristicLab.Data/3.3/ValueTypeArray.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> elementNames; 47 public virtual IEnumerable<string> ElementNames { 48 public virtual IEnumerable<string> ElementNames 49 { 48 50 get { return this.elementNames; } 49 set { 51 set 52 { 50 53 if (ReadOnly) throw new NotSupportedException("ElementNames cannot be set. ValueTypeArray is read-only."); 51 54 if (value == null || !value.Any()) … … 59 62 } 60 63 61 public virtual int Length { 64 public virtual int Length 65 { 62 66 get { return array.Length; } 63 67 #region Mono Compatibility 64 68 // this setter should be protected, but the Mono compiler couldn't handle it 65 set { 69 set 70 { 66 71 if (ReadOnly) throw new NotSupportedException("Length cannot be set. ValueTypeArray is read-only."); 67 72 if (value != Length) { … … 75 80 #endregion 76 81 } 77 public virtual T this[int index] { 82 public virtual T this[int index] 83 { 78 84 get { return array[index]; } 79 set { 85 set 86 { 80 87 if (ReadOnly) throw new NotSupportedException("Item cannot be set. ValueTypeArray is read-only."); 81 88 if (!value.Equals(array[index])) { … … 88 95 [Storable] 89 96 protected bool readOnly; 90 public virtual bool ReadOnly { 97 public virtual bool ReadOnly 98 { 91 99 get { return readOnly; } 92 100 } -
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 } -
branches/WebJobManager/HeuristicLab.Data/3.3/ValueTypeValue.cs
r12012 r13656 30 30 [StorableClass] 31 31 public abstract class ValueTypeValue<T> : Item where T : struct { 32 public static new Image StaticItemImage { 33 get { return HeuristicLab.Common.Resources.VSImageLibrary.ValueType; } 32 public static new Image StaticItemImage 33 { 34 get { return new Bitmap(25, 25); } 34 35 } 35 36 36 37 [Storable] 37 38 protected T value; 38 public virtual T Value { 39 public virtual T Value 40 { 39 41 get { return value; } 40 set { 42 set 43 { 41 44 if (ReadOnly) throw new NotSupportedException("Value cannot be set. ValueTypeValue is read-only."); 42 45 if (!value.Equals(this.value)) { … … 49 52 [Storable] 50 53 protected bool readOnly; 51 public virtual bool ReadOnly { 54 public virtual bool ReadOnly 55 { 52 56 get { return readOnly; } 53 57 }
Note: See TracChangeset
for help on using the changeset viewer.