- Timestamp:
- 05/08/19 15:55:01 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2971_named_intervals/HeuristicLab.Problems.DataAnalysis.Views/3.4/IntervalCollectionView.cs
r16921 r16927 69 69 70 70 71 var variablesCount = Content. getIntervals().Count;71 var variablesCount = Content.GetIntervals().Count; 72 72 73 73 DataGridViewRow[] rows = new DataGridViewRow[variablesCount]; … … 93 93 for (var i = 0; i < dataGridView.RowCount; ++i) { 94 94 var key = (string)dataGridView.Rows[i].HeaderCell.Value; 95 dataGridView.Rows[i].Cells[0].Value = Content. getInterval(key).LowerBound;96 dataGridView.Rows[i].Cells[1].Value = Content. getInterval(key).UpperBound;95 dataGridView.Rows[i].Cells[0].Value = Content.GetInterval(key).LowerBound; 96 dataGridView.Rows[i].Cells[1].Value = Content.GetInterval(key).UpperBound; 97 97 } 98 98 } 99 99 100 100 private void SetRowsHeader() { 101 for (var i = 0; i < Content. getIntervals().Count; ++i) {102 var item = Content. getIntervals().ElementAt(i);101 for (var i = 0; i < Content.GetIntervals().Count; ++i) { 102 var item = Content.GetIntervals().ElementAt(i); 103 103 dataGridView.Rows[i].HeaderCell.Value = item.Key; 104 104 } … … 115 115 if (e.ColumnIndex < 0 || e.RowIndex < 0) return; 116 116 117 var lowerBound = e.ColumnIndex == 0 ? double.Parse(dataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString()) : Content. getInterval(key).LowerBound;118 var upperBound = e.ColumnIndex == 1 ? double.Parse(dataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString()) : Content. getInterval(key).UpperBound;117 var lowerBound = e.ColumnIndex == 0 ? double.Parse(dataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString()) : Content.GetInterval(key).LowerBound; 118 var upperBound = e.ColumnIndex == 1 ? double.Parse(dataGridView.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString()) : Content.GetInterval(key).UpperBound; 119 119 120 120 // update if there was a change 121 if (lowerBound != Content. getInterval(key).LowerBound ||122 upperBound != Content. getInterval(key).UpperBound)123 Content. VariableIntervals[key] = new Interval(lowerBound, upperBound);121 if (lowerBound != Content.GetInterval(key).LowerBound || 122 upperBound != Content.GetInterval(key).UpperBound) 123 Content.SetInterval(key, new Interval(lowerBound, upperBound)); 124 124 } 125 125
Note: See TracChangeset
for help on using the changeset viewer.