Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/12/08 13:10:09 (16 years ago)
Author:
vdorfer
Message:

Created API documentation for HeuristLab.Data namespace (#331)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Data/ArrayDataBaseView.cs

    r344 r737  
    3030
    3131namespace HeuristicLab.Data {
     32  /// <summary>
     33  /// The visual representation of the class <see cref="ArrayDataBase"/>.
     34  /// </summary>
    3235  public partial class ArrayDataBaseView : ViewBase {
     36    /// <summary>
     37    /// Gets or sets the instance of the array to represent.
     38    /// </summary>
     39    /// <remarks>Uses property <see cref="HeuristicLab.Core.ViewBase.Item"/> of base class <see cref="ViewBase"/>.
     40    /// No own data storage present.</remarks>
    3341    public ArrayDataBase ArrayDataBase {
    3442      get { return (ArrayDataBase)Item; }
     
    3644    }
    3745
     46    /// <summary>
     47    /// Initializes a new instance of <see cref="ArrayDataBaseView"/>.
     48    /// </summary>
    3849    public ArrayDataBaseView() {
    3950      InitializeComponent();
    4051    }
    4152
     53    /// <summary>
     54    /// Removes the eventhandler from the underlying <see cref="ArrayDataBase"/>.
     55    /// </summary>
     56    /// <remarks>Calls <see cref="HeuristicLab.Core.ViewBase.RemoveItemEvents"/> of base class <see cref="ViewBase"/>.
     57    /// </remarks>
    4258    protected override void RemoveItemEvents() {
    4359      ArrayDataBase.Changed -= new EventHandler(ArrayDataBase_Changed);
    4460      base.RemoveItemEvents();
    4561    }
     62    /// <summary>
     63    /// Adds an eventhandler to the underlying <see cref="ArrayDataBase"/>.
     64    /// </summary>
     65    /// <remarks>Calls <see cref="HeuristicLab.Core.ViewBase.AddItemEvents"/> of base class <see cref="ViewBase"/>.
     66    /// </remarks>
    4667    protected override void AddItemEvents() {
    4768      base.AddItemEvents();
     
    4970    }
    5071
     72    /// <summary>
     73    /// Validates the given data.
     74    /// <note type="caution"> Needs to be overridden in each inherited class!</note>
     75    /// </summary>
     76    /// <exception cref="InvalidOperationException">Thrown when method is not
     77    /// overridden in inherited class.</exception>
     78    /// <param name="element">The data to validate.</param>
     79    /// <returns><c>true</c> if the data is valid, <c>false</c> otherwise.</returns>
    5180    protected virtual bool ValidateData(string element) {
    5281      throw new InvalidOperationException("ValidateData has to be overridden in each inherited class");
    5382    }
     83    /// <summary>
     84    /// Replaces an element at the given <paramref name="index"/>
     85    /// with the given <paramref name="element"/>.
     86    /// <note type="caution"> Needs to be overridden in each inherited class!</note>
     87    /// </summary>
     88    /// <exception cref="InvalidOperationException">Thrown when method is not
     89    /// overridden in inherited class.</exception>
     90    /// <param name="index">The position where to substitute the element.</param>
     91    /// <param name="element">The element to insert.</param>
    5492    protected virtual void SetArrayElement(int index, string element) {
    5593      throw new InvalidOperationException("SetArrayElement has to be overridden in each inherited class");
    5694    }
    5795
     96    /// <summary>
     97    /// Updates all controls and the elements of the table with the latest values.
     98    /// </summary>
    5899    protected override void UpdateControls() {
    59100      base.UpdateControls();
     
    90131    }
    91132
     133    /// <summary>
     134    /// Creates a new array having the specified number (<paramref name="newLength"/>) of elements of the
     135    /// current instance (starting from the beginning).
     136    /// </summary>
     137    /// <param name="newLength">The size/number of elements of the new array.</param>
    92138    private void CreateAndCopyArray(int newLength) {
    93139      Array newArray = Array.CreateInstance(ArrayDataBase.Data.GetType().GetElementType(), newLength);
Note: See TracChangeset for help on using the changeset viewer.