Changeset 737 for trunk/sources/HeuristicLab.Data/BoolArrayDataView.cs
- Timestamp:
- 11/12/08 13:10:09 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Data/BoolArrayDataView.cs
r2 r737 29 29 30 30 namespace HeuristicLab.Data { 31 /// <summary> 32 /// The visual representation of the class <see cref="BoolArrayData"/>, 33 /// symbolizing an array of boolean values. 34 /// </summary> 31 35 public partial class BoolArrayDataView : ArrayDataBaseView { 36 /// <summary> 37 /// Gets or sets the instance of the boolean array to represent visually. 38 /// </summary> 39 /// <remarks>Uses property <see cref="ArrayDataBase"/> of 40 /// base class <see cref="ArrayDataBaseView"/>. No own data storage present.</remarks> 32 41 public BoolArrayData BoolArrayData { 33 get { return (BoolArrayData)base. Item; }42 get { return (BoolArrayData)base.ArrayDataBase; } 34 43 set { base.ArrayDataBase = value; } 35 44 } 36 45 46 /// <summary> 47 /// Initializes a new instance of the class <see cref="BoolArrayDataView"/>. 48 /// </summary> 37 49 public BoolArrayDataView() { 38 50 InitializeComponent(); 39 51 } 52 /// <summary> 53 /// Initializes a new instance of the class <see cref="BoolArrayDataView"/> 54 /// with the given <paramref name="boolArrayData"/>. 55 /// <note type="caution"> No CopyConstructor! <paramref name="boolArrayData"/> is not copied!</note> 56 /// </summary> 57 /// <param name="boolArrayData">The boolean array to represent visually.</param> 40 58 public BoolArrayDataView(BoolArrayData boolArrayData) 41 59 : this() { … … 43 61 } 44 62 63 /// <summary> 64 /// Sets the element on position <paramref name="index"/> to the 65 /// given <paramref name="element"/> as boolean value. 66 /// </summary> 67 /// <param name="index">The position where to substitute the element.</param> 68 /// <param name="element">The element to insert.</param> 45 69 protected override void SetArrayElement(int index, string element) { 46 70 bool result; … … 50 74 } 51 75 76 /// <summary> 77 /// Checks whether the given <paramref name="element"/> can be converted to a boolean value. 78 /// </summary> 79 /// <param name="element">The data to validate.</param> 80 /// <returns><c>true</c> if the <paramref name="element"/> could be converted, 81 /// <c>false</c> otherwise.</returns> 52 82 protected override bool ValidateData(string element) { 53 83 bool result;
Note: See TracChangeset
for help on using the changeset viewer.