Ignore:
Timestamp:
04/29/13 11:36:00 (6 years ago)
Author:
sforsten
Message:

#2018: renamed "column" to "element" in array types

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ImprovingStringConvertibleMatrix/HeuristicLab.Data.Views/3.3/StringConvertibleArrayView.cs

    r9308 r9401  
    5353
    5454    protected override void DeregisterContentEvents() {
    55       Content.ColumnNamesChanged -= new EventHandler(Content_ColumnNamesChanged);
     55      Content.ElementNamesChanged -= new EventHandler(Content_ElementNamesChanged);
    5656      Content.Reset -= new EventHandler(Content_Reset);
    5757      Content.ItemsChanged -= new EventHandler<ArrayValuesChangedEventArgs>(Content_ItemsChanged);
     
    6363      Content.ItemsChanged += new EventHandler<ArrayValuesChangedEventArgs>(Content_ItemsChanged);
    6464      Content.Reset += new EventHandler(Content_Reset);
    65       Content.ColumnNamesChanged -= new EventHandler(Content_ColumnNamesChanged);
     65      Content.ElementNamesChanged -= new EventHandler(Content_ElementNamesChanged);
    6666    }
    6767
     
    106106    protected virtual void UpdateRowHeaders() {
    107107      for (int i = 0; i < dataGridView.RowCount; i++) {
    108         if (i < Content.ColumnNames.Count())
    109           dataGridView.Rows[i].HeaderCell.Value = Content.ColumnNames.ElementAt(i);
     108        if (i < Content.ElementNames.Count())
     109          dataGridView.Rows[i].HeaderCell.Value = Content.ElementNames.ElementAt(i);
    110110        else
    111           dataGridView.Rows[i].HeaderCell.Value = "Column " + (i + 1);
     111          dataGridView.Rows[i].HeaderCell.Value = "Element " + (i + 1);
    112112      }
    113113    }
     
    124124      }
    125125    }
    126     private void Content_ColumnNamesChanged(object sender, EventArgs e) {
     126    private void Content_ElementNamesChanged(object sender, EventArgs e) {
    127127      if (InvokeRequired)
    128         Invoke(new EventHandler(Content_ColumnNamesChanged), sender, e);
     128        Invoke(new EventHandler(Content_ElementNamesChanged), sender, e);
    129129      else
    130130        UpdateRowHeaders();
Note: See TracChangeset for help on using the changeset viewer.