Ignore:
Timestamp:
04/20/10 03:00:00 (12 years ago)
Author:
swagner
Message:

Removed property ReadOnlyView (#969)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleMatrixView.cs

    r3430 r3431  
    7171      Content.ColumnNamesChanged -= new EventHandler(Content_ColumnNamesChanged);
    7272      Content.RowNamesChanged -= new EventHandler(Content_RowNamesChanged);
    73       Content.ReadOnlyViewChanged -= new EventHandler(Content_ReadOnlyViewChanged);
    7473      base.DeregisterContentEvents();
    7574    }
     
    8079      Content.ColumnNamesChanged += new EventHandler(Content_ColumnNamesChanged);
    8180      Content.RowNamesChanged += new EventHandler(Content_RowNamesChanged);
    82       Content.ReadOnlyViewChanged += new EventHandler(Content_ReadOnlyViewChanged);
    8381    }
    8482
     
    126124      virtualRowIndizes = Enumerable.Range(0, Content.Rows).ToArray();
    127125      //DataGridViews with Rows but no columns are not allowed !
    128       if (Content.Rows == 0 && dataGridView.RowCount != Content.Rows && !Content.ReadOnlyView)
     126      if (Content.Rows == 0 && dataGridView.RowCount != Content.Rows && !Content.ReadOnly)
    129127        Content.Rows = dataGridView.RowCount;
    130128      else
    131129        dataGridView.RowCount = Content.Rows;
    132       if (Content.Columns == 0 && dataGridView.ColumnCount != Content.Columns && !Content.ReadOnlyView)
     130      if (Content.Columns == 0 && dataGridView.ColumnCount != Content.Columns && !Content.ReadOnly)
    133131        Content.Columns = dataGridView.ColumnCount;
    134132      else
     
    162160    }
    163161
    164     private void UpdateReadOnlyControls() {
    165       dataGridView.ReadOnly = Content.ReadOnlyView;
    166       rowsTextBox.ReadOnly = Content.ReadOnlyView;
    167       columnsTextBox.ReadOnly = Content.ReadOnlyView;
    168     }
    169 
    170162    private void Content_RowNamesChanged(object sender, EventArgs e) {
    171163      if (InvokeRequired)
     
    191183      else
    192184        UpdateData();
    193     }
    194 
    195     private void Content_ReadOnlyViewChanged(object sender, EventArgs e) {
    196       if (InvokeRequired)
    197         Invoke(new EventHandler(Content_ReadOnlyViewChanged), sender, e);
    198       else
    199         UpdateReadOnlyControls();
    200185    }
    201186
Note: See TracChangeset for help on using the changeset viewer.