private void SaveColumnizerList() { this.preferences.columnizerMaskList.Clear(); foreach (DataGridViewRow row in this.columnizerDataGridView.Rows) { if (!row.IsNewRow) { ColumnizerMaskEntry entry = new ColumnizerMaskEntry(); entry.mask = (string)row.Cells[0].Value; entry.columnizerName = (string)row.Cells[1].Value; this.preferences.columnizerMaskList.Add(entry); } } }
private void SaveColumnizerList() { this.Preferences.columnizerMaskList.Clear(); foreach (DataGridViewRow row in this.columnizerDataGridView.Rows) { if (!row.IsNewRow) { ColumnizerMaskEntry entry = new ColumnizerMaskEntry(); entry.mask = (string)row.Cells[0].Value; entry.columnizerName = (string)row.Cells[1].Value; this.Preferences.columnizerMaskList.Add(entry); } } }