Changeset 10691
- Timestamp:
- 04/02/14 10:52:00 (11 years ago)
- Location:
- branches/DataPreprocessing
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/CopyOfStringConvertibleMatrixView.cs
r10583 r10691 170 170 171 171 private void UpdateData() { 172 173 Point[] selectedCellsBeforeUpdate = GetSelectedCellsAsPoints(); 174 172 175 rowsTextBox.Text = Content.Rows.ToString(); 173 176 rowsTextBox.Enabled = true; … … 195 198 dataGridView.RowCount = Content.Rows; 196 199 197 198 200 ClearSorting(); 199 201 UpdateColumnHeaders(); 200 202 UpdateRowHeaders(); 201 203 202 dataGridView.AutoResizeColumns(DataGridViewAutoSizeColumnsMode. ColumnHeader);204 dataGridView.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.DisplayedCells); 203 205 dataGridView.AutoResizeRowHeadersWidth(DataGridViewRowHeadersWidthSizeMode.AutoSizeToDisplayedHeaders); 204 206 dataGridView.Enabled = true; 207 208 209 dataGridView.CurrentCell = null; 210 foreach (Point p in selectedCellsBeforeUpdate) 211 dataGridView[p.X, p.Y].Selected = true; 205 212 } 206 213 … … 257 264 else 258 265 UpdateData(); 266 } 267 268 private Point[] GetSelectedCellsAsPoints() { 269 Point[] points = new Point[dataGridView.SelectedCells.Count]; 270 for (int i = 0; i < dataGridView.SelectedCells.Count; i++) 271 { 272 points[i].X = dataGridView.SelectedCells[i].ColumnIndex; 273 points[i].Y = dataGridView.SelectedCells[i].RowIndex; 274 } 275 276 return points; 259 277 } 260 278 -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.3/StatisticsView.cs
r10558 r10691 111 111 dataGridView.Rows[i].HeaderCell.Value = logic.GetVariableName(i); 112 112 } 113 114 dataGridView.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.DisplayedCells); 115 dataGridView.AutoResizeRowHeadersWidth(DataGridViewRowHeadersWidthSizeMode.AutoSizeToDisplayedHeaders); 113 116 dataGridView.AllowUserToResizeColumns = true; 114 117 } -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/FilterLogic.cs
r10667 r10691 32 32 this.preprocessingData = preprocessingData; 33 33 } 34 35 34 36 35 public bool[] Preview(IList<IFilter> filters)
Note: See TracChangeset
for help on using the changeset viewer.